public function SearchApiElasticsearchConnectorMissing::deleteItems in Elasticsearch Connector 7
Same name and namespace in other branches
- 7.5 modules/elasticsearch_connector_search_api/service.inc \SearchApiElasticsearchConnectorMissing::deleteItems()
- 7.2 modules/elasticsearch_connector_search_api/service.inc \SearchApiElasticsearchConnectorMissing::deleteItems()
Deletes indexed items from this server.
Might be either used to delete some items (given by their ids) from a specified index, or all items from that index, or all items from all indexes on this server.
Parameters
$ids: Either an array containing the ids of the items that should be deleted, or 'all' if all items should be deleted. Other formats might be recognized by implementing classes, but these are not standardized.
SearchApiIndex $index: The index from which items should be deleted, or NULL if all indexes on this server should be cleared (then, $ids has to be 'all').
Throws
SearchApiException If an error occurred while trying to delete the items.
Overrides SearchApiServiceInterface::deleteItems
File
- modules/
elasticsearch_connector_search_api/ service.inc, line 26 - Provides a Elasticsearch-based service class for the Search API using Elasticsearch Connector module.
Class
- SearchApiElasticsearchConnectorMissing
- Dummy search service for when the ElasticSearch library isn't available.
Code
public function deleteItems($ids = 'all', SearchApiIndex $index = NULL) {
}