You are here

public function StreamingExpressionQueryHelper::getStreamingExpressionBuilder in Search API Solr 8.3

Same name and namespace in other branches
  1. 8.2 src/Utility/StreamingExpressionQueryHelper.php \Drupal\search_api_solr\Utility\StreamingExpressionQueryHelper::getStreamingExpressionBuilder()
  2. 4.x src/Utility/StreamingExpressionQueryHelper.php \Drupal\search_api_solr\Utility\StreamingExpressionQueryHelper::getStreamingExpressionBuilder()

Builds a streaming expression for the given Search API query.

Parameters

\Drupal\search_api\Query\QueryInterface $query: The Search API query.

Return value

\Drupal\search_api_solr\Utility\StreamingExpressionBuilder The StreamingExpressionBuilder object.

Throws

\Drupal\search_api\SearchApiException

\Drupal\search_api_solr\SearchApiSolrException

File

src/Utility/StreamingExpressionQueryHelper.php, line 25

Class

StreamingExpressionQueryHelper
Provides methods for creating streaming expressions.

Namespace

Drupal\search_api_solr\Utility

Code

public function getStreamingExpressionBuilder(QueryInterface $query) {
  return new StreamingExpressionBuilder($query
    ->getIndex());
}