Merging duplicate has_solr_fields function