array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'solrquery.getfacetlimit.php', 1 => 'SolrQuery::getFacetLimit', 2 => 'Returns the maximum number of constraint counts that should be returned for the facet fields', ), 'up' => array ( 0 => 'class.solrquery.php', 1 => 'SolrQuery', ), 'prev' => array ( 0 => 'solrquery.getfacetfields.php', 1 => 'SolrQuery::getFacetFields', ), 'next' => array ( 0 => 'solrquery.getfacetmethod.php', 1 => 'SolrQuery::getFacetMethod', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/solr/solrquery/getfacetlimit.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

SolrQuery::getFacetLimit

(PECL solr >= 0.9.2)

SolrQuery::getFacetLimitReturns the maximum number of constraint counts that should be returned for the facet fields

说明

public SolrQuery::getFacetLimit(string $field_override = ?): int

Returns the maximum number of constraint counts that should be returned for the facet fields. This method accepts an optional field override

参数

field_override

The name of the field to override for

返回值

Returns an integer on success and null if not set