public function SearchApiElasticsearchBackend::getIndexFields in Elasticsearch Connector 8
Helper function. Return index fields.
6 calls to SearchApiElasticsearchBackend::getIndexFields()
- SearchApiElasticsearchBackend::addSearchFacets in src/
Plugin/ search_api/ backend/ SearchApiElasticsearchBackend.php - Helper function build facets in search.
- SearchApiElasticsearchBackend::getAutocompleteSuggestions in src/
Plugin/ search_api/ backend/ SearchApiElasticsearchBackend.php - Helper function. Get Autocomplete suggestions.
- SearchApiElasticsearchBackend::getFacetSearchFilter in src/
Plugin/ search_api/ backend/ SearchApiElasticsearchBackend.php - Helper function return Facet filter.
- SearchApiElasticsearchBackend::getSearchQueryOptions in src/
Plugin/ search_api/ backend/ SearchApiElasticsearchBackend.php - Helper function return associative array with query options.
- SearchApiElasticsearchBackend::getSortSearchQuery in src/
Plugin/ search_api/ backend/ SearchApiElasticsearchBackend.php - Helper function that return Sort for query in search.
File
- src/
Plugin/ search_api/ backend/ SearchApiElasticsearchBackend.php, line 1007 - Contains the SearchApiElasticsearchBackend object.
Class
- SearchApiElasticsearchBackend
- Plugin annotation @SearchApiBackend( id = "elasticsearch", label = @Translation("Elasticsearch"), description = @Translation("Index items using an Elasticsearch server.") )
Namespace
Drupal\elasticsearch_connector\Plugin\search_api\backendCode
public function getIndexFields(QueryInterface $query) {
$index = $query
->getIndex();
$index_fields = $index
->getFields();
return $index_fields;
}