public function SearchApiElasticsearchConnector::getIndexParam in Elasticsearch Connector 7.2
Same name and namespace in other branches
- 7.5 modules/elasticsearch_connector_search_api/service.inc \SearchApiElasticsearchConnector::getIndexParam()
- 7 modules/elasticsearch_connector_search_api/service.inc \SearchApiElasticsearchConnector::getIndexParam()
Helper function to return the index param.
Parameters
SearchApiIndex $index:
Return value
array
9 calls to SearchApiElasticsearchConnector::getIndexParam()
- SearchApiElasticsearchConnector::deleteItems in modules/
elasticsearch_connector_search_api/ service.inc - Overrides deleteItems().
- SearchApiElasticsearchConnector::deleteItemsIds in modules/
elasticsearch_connector_search_api/ service.inc - Helper function for bulk delete operation.
- SearchApiElasticsearchConnector::fieldsUpdated in modules/
elasticsearch_connector_search_api/ service.inc - Overrides fieldsUpdated().
- SearchApiElasticsearchConnector::getElasticsearchIndexSettings in modules/
elasticsearch_connector_search_api/ service.inc - Get the index settings of an Elasticsearch index.
- SearchApiElasticsearchConnector::getElasticsearchTypeExists in modules/
elasticsearch_connector_search_api/ service.inc - Helper function, check if the type exists.
File
- modules/
elasticsearch_connector_search_api/ service.inc, line 358 - Provides a Elasticsearch-based service class for the Search API using Elasticsearch Connector module.
Class
- SearchApiElasticsearchConnector
- Search service class.
Code
public function getIndexParam(SearchApiIndex $index, $with_type = FALSE) {
$index_name = $this
->getIndexName($index);
$params = array();
$params['index'] = $index_name;
if ($with_type) {
$params['type'] = $index->machine_name;
}
return $params;
}