SolrQuery::setGroupMain

(PECL solr >= 2.2.0)

SolrQuery::setGroupMainIf true, the result of the first field grouping command is used as the main result list in the response, using group.format=simple

说明

public SolrQuery::setGroupMain ( string $value ) : SolrQuery

If true, the result of the first field grouping command is used as the main result list in the response, using group.format=simple.

参数

value

返回值

参见

参见

相关文章
php solrquery overrides main filter query determines which documents to include in the main groupphp solrquery add a field to be used to group resultsphp solrquery allows grouping results based on the unique values of a function query group.func parameter php solrquery add a group sort field group.sort parameter php solrquery collapses the result set to a single document per groupphp solrquery returns true if group expanding is enabledphp solrquery returns the lower bound for the first date range for all date faceting on this fieldphp solrquery returns an offset into the list of constraints to be used for paginationphp solrquery returns the list of fields that will be returned in the responsephp solrquery returns true if grouping is enabledphp solrquery returns the group.format valuephp solrquery returns the group.main valuephp solrquery returns the maximum number of characters from a field when using the regex fragmenterphp solrquery returns if a field will only be highlighted if the query matched in this particular fieldphp solrquery removes a field from the list of fieldsphp solrquery enable/disable result grouping group parameter php solrquery sets the group format result structure group.format parameter php 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 query
关注编程学问公众号