在线文档教程
PHP
Solr

SolrQuery::setGroupMain

SolrQuery::setGroupMain

(PECL solr >= 2.2.0)

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

Description

public SolrQuery SolrQuery::setGroupMain ( string $value )

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

Parameters

value

Return Values

See Also

  • See Also

  • SolrQuery::setGroup() - Enable/Disable result grouping (group parameter)

  • SolrQuery::addGroupField() - Add a field to be used to group results.

  • SolrQuery::addGroupFunction() - Allows grouping results based on the unique values of a function query (group.func parameter).

  • SolrQuery::addGroupQuery() - Allows grouping of documents that match the given query.

  • SolrQuery::addGroupSortField() - Add a group sort field (group.sort parameter).

  • SolrQuery::setGroupFacet() - Sets group.facet parameter

  • SolrQuery::setGroupOffset() - Sets the group.offset parameter.

  • SolrQuery::setGroupMain()

  • SolrQuery::setGroupNGroups() - If true, Solr includes the number of groups that have matched the query in the results.

  • SolrQuery::setGroupTruncate() - If true, facet counts are based on the most relevant document of each group matching the query.

  • SolrQuery::setGroupFormat() - Sets the group format, result structure (group.format parameter).

  • SolrQuery::setGroupCachePercent() - Enables caching for result grouping

← SolrQuery::setGroupLimit

SolrQuery::setGroupNGroups →

© 1997–2017 The PHP Documentation Group

Licensed under the Creative Commons Attribution License v3.0 or later.

https://secure.php.net/manual/en/solrquery.setgroupmain.php