array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'solrquery.setgroupmain.php', 1 => 'SolrQuery::setGroupMain', 2 => 'If true, the result of the first field grouping command is used as the main result list in the response, using group.format=simple', ), 'up' => array ( 0 => 'class.solrquery.php', 1 => 'SolrQuery', ), 'prev' => array ( 0 => 'solrquery.setgrouplimit.php', 1 => 'SolrQuery::setGroupLimit', ), 'next' => array ( 0 => 'solrquery.setgroupngroups.php', 1 => 'SolrQuery::setGroupNGroups', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/solr/solrquery/setgroupmain.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

SolrQuery::setGroupMain

(PECL solr >= 2.2.0)

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

说明

public 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.

参数

value

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

返回值

Returns an instance of SolrQuery.

参见