You are here

public function SearchApiElasticsearchAbstractService::getAnalysisSettings in Search API Elasticsearch 7

Get analyzers for an Elasticsearch index.

Parameters

SearchApiIndex $index: A Search API index object.

Return value

array | bool An array of available analyzers. FALSE if none.

File

includes/SearchApiElasticsearchAbstractService.inc, line 986
Provides a Elasticsearch-based service class for the Search API.

Class

SearchApiElasticsearchAbstractService
Elasticsearch service abstract class.

Code

public function getAnalysisSettings(SearchApiIndex $index) {
  $settings = $this
    ->getSettings($index);
  return isset($settings['analysis']) ? $settings['analysis'] : FALSE;
}