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 intlcalendar add a signed amount of time to a fieldphp mysql xdevapi tableupdate add field to be updatedphp solrdismaxquery add a query field with optional boost qf parameter php 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 maps to stats.field parameterphp solrquery collapses the result set to a single document per groupphp solrquery returns the maximum number of constraint counts that should be returned for the facet fieldsphp 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 group functions group.func parameter values php solrquery returns the group.limit valuephp 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 word length above which words will be ignoredphp 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 results
关注编程学问公众号