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

SolrQuery::setStats

PHP function Edit on GitHub ✎

(PECL solr >= 0.9.2)

Enables or disables the Stats component

Description

SolrQuery::setStats(bool $flag): SolrQuery

Enables or disables the Stats component.

Parameters

flag

true turns on the stats component and false disables it.

Return Values

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

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