php8.5
Home/ Manual/ solr / solrquery/ SolrQuery::addStatsFacet

SolrQuery::addStatsFacet

PHP function Edit on GitHub ✎

(PECL solr >= 0.9.2)

Requests a return of sub results for values within the given facet

Description

SolrQuery::addStatsFacet(string $field): SolrQuery

Requests a return of sub results for values within the given facet. Maps to the stats.facet field

Parameters

field

The name of the field

Return Values

Returns the current SolrQuery object, if the return value is used.

Source: reference/solr/solrquery/addstatsfacet.xml · from the official PHP manual (php/doc-en)