array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'solrquery.settermsfield.php', 1 => 'SolrQuery::setTermsField', 2 => 'Sets the name of the field to get the Terms from', ), 'up' => array ( 0 => 'class.solrquery.php', 1 => 'SolrQuery', ), 'prev' => array ( 0 => 'solrquery.setterms.php', 1 => 'SolrQuery::setTerms', ), 'next' => array ( 0 => 'solrquery.settermsincludelowerbound.php', 1 => 'SolrQuery::setTermsIncludeLowerBound', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/solr/solrquery/settermsfield.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

SolrQuery::setTermsField

(PECL solr >= 0.9.2)

SolrQuery::setTermsFieldSets the name of the field to get the Terms from

说明

public SolrQuery::setTermsField(string $fieldname): SolrQuery

Sets the name of the field to get the terms from

参数

fieldname

The field name

返回值

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