public function SearchApiElasticsearchConnector::getSafeId in Elasticsearch Connector 7.5
Same name and namespace in other branches
- 7 modules/elasticsearch_connector_search_api/service.inc \SearchApiElasticsearchConnector::getSafeId()
- 7.2 modules/elasticsearch_connector_search_api/service.inc \SearchApiElasticsearchConnector::getSafeId()
Create document ID using site hash, if available.
2 calls to SearchApiElasticsearchConnector::getSafeId()
- SearchApiElasticsearchConnector::deleteItemsIds in modules/
elasticsearch_connector_search_api/ service.inc - Helper function for bulk delete operation.
- SearchApiElasticsearchConnector::indexItems in modules/
elasticsearch_connector_search_api/ service.inc - Overrides indexItems().
File
- modules/
elasticsearch_connector_search_api/ service.inc, line 2063 - Provides a Elasticsearch-based service class for the Search API using Elasticsearch Connector module.
Class
- SearchApiElasticsearchConnector
- Search service class.
Code
public function getSafeId($id) {
$site_id = $this
->getSiteHash();
return $site_id ? "{$site_id}-{$id}" : $id;
}