You are here

public function SearchApiElasticsearchElastica::getElasticaType in Search API Elasticsearch 7

Helper function. Get the corresponding Elastica type.

3 calls to SearchApiElasticsearchElastica::getElasticaType()
SearchApiElasticsearchElastica::deleteItems in modules/elastica/includes/SearchApiElasticsearchElastica.inc
Overrides deleteItems().
SearchApiElasticsearchElastica::indexItems in modules/elastica/includes/SearchApiElasticsearchElastica.inc
Overrides indexItems().
SearchApiElasticsearchElastica::search in modules/elastica/includes/SearchApiElasticsearchElastica.inc
Overrides search().

File

modules/elastica/includes/SearchApiElasticsearchElastica.inc, line 625
Provides Elastica client for Search API Elasticsearch.

Class

SearchApiElasticsearchElastica
Search API Elasticsearch Elastica service class.

Code

public function getElasticaType(SearchApiIndex $index) {
  $elastica_index = $this
    ->getElasticaIndex($index);
  return !empty($elastica_index) ? $elastica_index
    ->getType($index->machine_name) : NULL;
}