You are here

function hook_search_api_solr_finalize_index in Search API Solr 8.2

Same name and namespace in other branches
  1. 8.3 search_api_solr.api.php \hook_search_api_solr_finalize_index()
  2. 4.x search_api_solr.api.php \hook_search_api_solr_finalize_index()

Apply any finalization commands to a solr index before the first search.

This hook will be called every time any item within the index was updated or deleted. Not on every modification but before the first search happens on an updated index. This could be useful to apply late modifications to the items themselves within Solr which is much more faster.

Parameters

\Drupal\search_api\IndexInterface $index:

1 invocation of hook_search_api_solr_finalize_index()
SearchApiSolrBackend::finalizeIndex in src/Plugin/search_api/backend/SearchApiSolrBackend.php

File

./search_api_solr.api.php, line 233
Hooks provided by the Search API Solr search module.

Code

function hook_search_api_solr_finalize_index(\Drupal\search_api\IndexInterface $index) {
}