public function StreamingExpressionBuilder::_search_all in Search API Solr 8.3
Same name and namespace in other branches
- 8.2 src/Utility/StreamingExpressionBuilder.php \Drupal\search_api_solr\Utility\StreamingExpressionBuilder::_search_all()
- 4.x src/Utility/StreamingExpressionBuilder.php \Drupal\search_api_solr\Utility\StreamingExpressionBuilder::_search_all()
Eases search() streaming expressions if all results are required.
Internally this function uses the default /select query type and sets the rows parameter "to be 10000000 or some other ridiculously large value that is higher than the possible number of rows that are expected".
Return value
string A chainable streaming expression as string.
Throws
\Drupal\search_api\SearchApiException
See also
https://wiki.apache.org/solr/CommonQueryParameters
https://lucene.apache.org/solr/guide/7_3/stream-source-reference.html
File
- src/
Utility/ StreamingExpressionBuilder.php, line 576
Class
- StreamingExpressionBuilder
- Provides methods for creating streaming expressions targeting a given index.
Namespace
Drupal\search_api_solr\UtilityCode
public function _search_all() {
return $this
->search($this
->_collection(), implode(', ', func_get_args()), 'rows=' . $this
->getSearchAllRows());
}