protected function SarniaSolrService::getFacetField in Sarnia 7
Return the facet field name corresponding to a normal Solr field name.
For now, this is just the same field name. This method is necessary to override SearchApiSolrService::getFacetField(), which prepends 'f_' to field names beginning with 's'. If we need more nuance here than just the displayable, non-fulltext fields, we could provide another 'filter' and use SarniaSolrService::getFilteredFields() and SarniaSolrService::schemaApplyRules(), the same way we do to map display fields to sort and filter fields.
See also
sarnia_facetapi_facet_info_alter()
File
- ./
service.inc, line 172
Class
- SarniaSolrService
- Search service class using Solr server.
Code
protected function getFacetField($field) {
return $field;
}