You are here

public function StreamingExpressionBuilder::_export_all in Search API Solr 8.2

Same name and namespace in other branches
  1. 8.3 src/Utility/StreamingExpressionBuilder.php \Drupal\search_api_solr\Utility\StreamingExpressionBuilder::_export_all()
  2. 4.x src/Utility/StreamingExpressionBuilder.php \Drupal\search_api_solr\Utility\StreamingExpressionBuilder::_export_all()

Eases search() streaming expressions if all results are required.

Internally this function switches to the /export query type by default. But if you run into errors like "field XY requires DocValues" you should use _search_all().

Return value

string A chainable streaming expression as string.

File

src/Utility/StreamingExpressionBuilder.php, line 399

Class

StreamingExpressionBuilder
Provides methods for creating streaming expressions targeting a given index.

Namespace

Drupal\search_api_solr\Utility

Code

public function _export_all() {
  return $this
    ->search($this
    ->_collection(), implode(', ', func_get_args()), 'qt="/export"');
}