You are here

public function SearchApiElasticsearchConnector::getIndexFields in Elasticsearch Connector 7.5

Same name and namespace in other branches
  1. 7 modules/elasticsearch_connector_search_api/service.inc \SearchApiElasticsearchConnector::getIndexFields()
  2. 7.2 modules/elasticsearch_connector_search_api/service.inc \SearchApiElasticsearchConnector::getIndexFields()

Helper function. Return index fields.

5 calls to SearchApiElasticsearchConnector::getIndexFields()
SearchApiElasticsearchConnector::addSearchFacets in modules/elasticsearch_connector_search_api/service.inc
Helper function build facets in search.
SearchApiElasticsearchConnector::getFacetSearchFilter in modules/elasticsearch_connector_search_api/service.inc
Helper function return Facet filter.
SearchApiElasticsearchConnector::getSearchQueryOptions in modules/elasticsearch_connector_search_api/service.inc
Helper function return associative array with query options.
SearchApiElasticsearchConnector::getSortSearchQuery in modules/elasticsearch_connector_search_api/service.inc
Helper function that return Sort for query in search.
SearchApiElasticsearchConnector::parseSearchFacets in modules/elasticsearch_connector_search_api/service.inc
Helper function that parse facets.

File

modules/elasticsearch_connector_search_api/service.inc, line 1201
Provides a Elasticsearch-based service class for the Search API using Elasticsearch Connector module.

Class

SearchApiElasticsearchConnector
Search service class.

Code

public function getIndexFields(SearchApiQueryInterface $query) {
  $index = $query
    ->getIndex();
  $index_fields = $index
    ->getFields();
  return $index_fields;
}