protected function SearchApiElasticsearchConnector::buildAdditionalProcessorQuery in Elasticsearch Connector 7
Same name and namespace in other branches
- 7.5 modules/elasticsearch_connector_search_api/service.inc \SearchApiElasticsearchConnector::buildAdditionalProcessorQuery()
- 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 633 - 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;
}
}
}