SolrQuery::addGroupField

(PECL solr >= 2.2.0)

SolrQuery::addGroupFieldAdd a field to be used to group results

说明

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

The name of the field by which to group results. The field must be single-valued, and either be indexed or a field type that has a value source and works in a function query, such as ExternalFileField. It must also be a string-based field, such as StrField or TextField Uses group.field parameter

参数

value

参见

相关文章
php mcve 函数 returns array of strings which represents the keys that can be used for response parameters on this transactionphp imagickdraw set the polygon fill rule to be used by the clipping pathphp mysql xdevapi tableupdate add field to be updatedphp 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 used to control how the results should be sortedphp solrquery requests a return of sub results for values within the given facetphp 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 group fields group.field parameter values php solrquery returns the group.format valuephp solrquery returns the maximum number of characters of the field to returnphp solrquery returns if a field will only be highlighted if the query matched in this particular fieldphp solrquery returns whether or not morelikethis results should be enabledphp solrquery returns the maximum number of tokens to parse in each document field that is not stored with termvector supportphp solrquery removes a field from the list of fieldsphp 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=simple
关注编程学问公众号