php8.5
Home/ Manual/ solr / solrquery/ SolrQuery::setGroupMain

SolrQuery::setGroupMain

PHP function Edit on GitHub ✎

(PECL solr >= 2.2.0)

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

SolrQuery::setGroupMain(string $value): 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.

Parameters

value

If true, the result of the first field grouping command is used as the main result list in the response.

Return Values

Returns an instance of SolrQuery.

See Also

  • SolrQuery::setGroup
  • SolrQuery::addGroupField
  • SolrQuery::addGroupFunction
  • SolrQuery::addGroupQuery
  • SolrQuery::addGroupSortField
  • SolrQuery::setGroupFacet
  • SolrQuery::setGroupOffset
  • SolrQuery::setGroupMain
  • SolrQuery::setGroupNGroups
  • SolrQuery::setGroupTruncate
  • SolrQuery::setGroupFormat
  • SolrQuery::setGroupCachePercent

Source: reference/solr/solrquery/setgroupmain.xml · from the official PHP manual (php/doc-en)