public static function SearchApiElasticsearchElasticaSearcher::search in Search API Elasticsearch 7
1 call to SearchApiElasticsearchElasticaSearcher::search()
- SearchApiElasticsearchElastica::search in modules/
elastica/ includes/ SearchApiElasticsearchElastica.inc - Overrides search().
File
- modules/
elastica/ includes/ SearchApiElasticsearchElasticaSearcher.inc, line 10 - Contains searcher for Elastica client.
Class
- SearchApiElasticsearchElasticaSearcher
- @file Contains searcher for Elastica client.
Code
public static function search($type, $query, $options, SearchApiQueryInterface $search_api_query) {
if (!empty($options['mlt'])) {
SearchApiElasticsearchElasticaMLT::build($type, $options, $query, $search_api_query);
}
drupal_alter('search_api_elasticsearch_elastica_query', $query, $search_api_query);
return $type
->search($query);
}