Php/docs/solrquery.settermssort

提供:Dev Guides
< Php
2020年12月14日 (月) 12:24時点におけるNotes (トーク | 投稿記録)による版 (autoload)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
移動先:案内検索

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.