array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'solrquery.setrows.php', 1 => 'SolrQuery::setRows', 2 => 'Specifies the maximum number of rows to return in the result', ), 'up' => array ( 0 => 'class.solrquery.php', 1 => 'SolrQuery', ), 'prev' => array ( 0 => 'solrquery.setquery.php', 1 => 'SolrQuery::setQuery', ), 'next' => array ( 0 => 'solrquery.setshowdebuginfo.php', 1 => 'SolrQuery::setShowDebugInfo', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/solr/solrquery/setrows.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

SolrQuery::setRows

(PECL solr >= 0.9.2)

SolrQuery::setRowsSpecifies the maximum number of rows to return in the result

说明

public SolrQuery::setRows(int $rows): SolrQuery

Specifies the maximum number of rows to return in the result

参数

rows

The maximum number of rows to return

返回值

Returns the current SolrQuery object.