SolrQuery::setGroupTruncate

(PECL solr >= 2.2.0)

SolrQuery::setGroupTruncateIf true, facet counts are based on the most relevant document of each group matching the query

说明

public SolrQuery::setGroupTruncate ( bool $value ) : SolrQuery

If true, facet counts are based on the most relevant document of each group matching the query. The server default value is false. group.truncate parameter

参数

value

返回值

参见

相关文章
php phar returns true if the phar archive is based on the tar/phar/zip file format depending on the parameterphp solrquery overrides main filter query determines which documents to include in the main groupphp solrquery adds a facet queryphp solrquery allows grouping results based on the unique values of a function query group.func parameter php solrquery returns true if group expanding is enabledphp solrquery returns the number of rows to display in each group expand.rows php solrquery returns the minimum counts for facet fields should be included in the responsephp solrquery returns true if grouping is enabledphp solrquery returns the group.facet parameter valuephp solrquery returns all the group.query parameter valuesphp solrquery returns if a field will only be highlighted if the query matched in this particular fieldphp solrquery returns the maximum number of tokens to parse in each document field that is not stored with termvector supportphp solrquery removes one of the facet.query parametersphp solrquery sets the number of rows to display in each group expand.rows . server default 5php solrquery sets group.facet parameterphp solrquery specifies the number of results to return for each group. the server default value is 1php solrquery if true the result of the first field grouping command is used as the main result list in the response using group.format=simplephp solrquery if true solr includes the number of groups that have matched the query in the resultsphp solrquery if true facet counts are based on the most relevant document of each group matching the queryphp solrquery set if the query will be boosted by the interesting term relevance
关注编程学问公众号