SolrQuery::setTermsSort

(PECL solr >= 0.9.2)

SolrQuery::setTermsSortSpecifies how to sort the returned terms

说明

public SolrQuery::setTermsSort ( int $sortType ) : SolrQuery

If SolrQuery::TERMS_SORT_COUNT, sorts the terms by the term frequency (highest count first). If SolrQuery::TERMS_SORT_INDEX, returns the terms in index order

参数

sortType

SolrQuery::TERMS_SORT_INDEX or SolrQuery::TERMS_SORT_COUNT

返回值

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

相关文章
php snmp 函数 specify the method how the snmp values will be returnedphp solrquery orders the documents within the expanded groups expand.sort parameter php solrquery add a group sort field group.sort parameter php solrquery used to control how the results should be sortedphp solrquery returns the maximum number of constraint counts that should be returned for the facet fieldsphp solrquery returns the maximum number of query terms that will be included in any generated queryphp solrquery returns the frequency below which terms will be ignored in the source documentphp solrquery returns the field from which the terms are retrievedphp solrquery returns the maximum number of terms solr should returnphp solrquery returns an integer indicating how terms are sortedphp solrquery removes an expand sort field from the expand.sort parameterphp solrquery specifies a string prefix with which to limits the terms on which to facetphp solrquery specifies the number of results to return for each group. the server default value is 1php solrquery specifies the number of characters into a document to look for suitable snippetsphp solrquery sets the frequency below which terms will be ignored in the source docsphp solrquery exclude the header from the returned resultsphp solrquery specifies the maximum number of rows to return in the resultphp solrquery specifies the number of rows to skipphp solrquery restrict matches to terms that start with the prefixphp solrquery specifies how to sort the returned terms
关注编程学问公众号