SolrQuery
PHP Manual

SolrQuery::setRows

(PECL solr >= 0.9.2)

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

说明

public SolrQuery SolrQuery::setRows ( int $rows )

Specifies the maximum number of rows to return in the result

参数

rows

The maximum number of rows to return

返回值

Returns the current SolrQuery object.


SolrQuery
PHP Manual