SolrSearchService::getFacetsForFields
Method used to return details about the facets stored for content, if any, for an empty query.
Note - if you're wanting to perform actual queries using faceting information, please manually add the faceting information into the $params array during the query! This method is purely for convenience!
Signature
public function getFacetsForFields(
$fields,
[integer
$number = 10] )
Parameters
$fields
—
An array of fields to get facet information for$number
— integer