You are here

protected function SearchApiElasticsearchConnector::buildAdditionalProcessorQuery in Elasticsearch Connector 7.5

Same name and namespace in other branches
  1. 7 modules/elasticsearch_connector_search_api/service.inc \SearchApiElasticsearchConnector::buildAdditionalProcessorQuery()
  2. 7.2 modules/elasticsearch_connector_search_api/service.inc \SearchApiElasticsearchConnector::buildAdditionalProcessorQuery()

Adding all additional parameters to the search comming from processors.

Parameters

array $params:

SearchApiQueryInterface $query:

1 call to SearchApiElasticsearchConnector::buildAdditionalProcessorQuery()
SearchApiElasticsearchConnector::search in modules/elasticsearch_connector_search_api/service.inc
Overrides search().

File

modules/elasticsearch_connector_search_api/service.inc, line 680
Provides a Elasticsearch-based service class for the Search API using Elasticsearch Connector module.

Class

SearchApiElasticsearchConnector
Search service class.

Code

protected function buildAdditionalProcessorQuery(&$params, SearchApiQueryInterface $query) {
  $elasticsearch_processors_params = $query
    ->getOption('elasticsearch_processors_params', array());
  if (!empty($elasticsearch_processors_params)) {
    foreach ($elasticsearch_processors_params as $body_key => $body_value) {
      $params['body'][$body_key] = $body_value;
    }
  }
}