array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'tr', ), 'this' => array ( 0 => 'solrquery.setfacetmethod.php', 1 => 'SolrQuery::setFacetMethod', 2 => 'Specifies the type of algorithm to use when faceting a field', ), 'up' => array ( 0 => 'class.solrquery.php', 1 => 'SolrQuery', ), 'prev' => array ( 0 => 'solrquery.setfacetlimit.php', 1 => 'SolrQuery::setFacetLimit', ), 'next' => array ( 0 => 'solrquery.setfacetmincount.php', 1 => 'SolrQuery::setFacetMinCount', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/solr/solrquery/setfacetmethod.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

SolrQuery::setFacetMethod

(PECL solr >= 0.9.2)

SolrQuery::setFacetMethodSpecifies the type of algorithm to use when faceting a field

Açıklama

public SolrQuery::setFacetMethod(string $method, string $field_override = ?): SolrQuery

Specifies the type of algorithm to use when faceting a field. This method accepts optional field override.

Bağımsız Değişkenler

method

The method to use.

field_override

The name of the field.

Dönen Değerler

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