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 imagickdraw sets the fill color to be used for drawing filled objectsphp mysql xdevapi tableupdate add field to be updatedphp 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 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 the group.limit 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 returns whether or not morelikethis results should be enabledphp solrquery returns the treshold frequency at which words will be ignored which do not occur in at least this many docsphp solrquery removes one of the fields used for highlightingphp 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 sets the group.offset parameter
关注编程学问公众号