You are here

SearchApiElasticsearchElasticaSearcher.inc in Search API Elasticsearch 7

Contains searcher for Elastica client.

File

modules/elastica/includes/SearchApiElasticsearchElasticaSearcher.inc
View source
<?php

/**
 * @file
 * Contains searcher for Elastica client.
 */
class SearchApiElasticsearchElasticaSearcher {
  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);
  }

}

Classes

Namesort descending Description
SearchApiElasticsearchElasticaSearcher @file Contains searcher for Elastica client.