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 dbx 函数 escape a string so it can safely be used in an sql statementphp gearmanclient add a task to be run in parallelphp gearmanclient add a background task to be run in parallelphp gmagickdraw sets the fill color to be used for drawing filled objectsphp imagickdraw returns the shape to be used at the end of open subpaths when they are strokedphp imagickdraw returns the shape to be used at the corners of paths when they are strokedphp mysql xdevapi tableupdate add field to be updatedphp solrcollapsefunction selects the group heads by the max value of a numeric field or function queryphp 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 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 group fields group.field parameter values php solrquery returns if a field will only be highlighted if the query matched in this particular fieldphp solrquery returns the maximum number of highlighted snippets to generate per fieldphp solrquery returns whether or not morelikethis results should be enabledphp 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
关注编程学问公众号