You are here

public function SearchApiElasticsearchConnector::getSiteHash in Elasticsearch Connector 7.5

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

Provides support for search_api_site hashes to add to IDs. See https://www.drupal.org/files/1776534.patch for Solr version.

2 calls to SearchApiElasticsearchConnector::getSiteHash()
SearchApiElasticsearchConnector::deleteItems in modules/elasticsearch_connector_search_api/service.inc
Overrides deleteItems().
SearchApiElasticsearchConnector::getSafeId in modules/elasticsearch_connector_search_api/service.inc
Create document ID using site hash, if available.

File

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

Class

SearchApiElasticsearchConnector
Search service class.

Code

public function getSiteHash() {
  if (function_exists('search_api_site_hash')) {
    return search_api_site_hash();
  }
  return FALSE;
}