You are here

public function SolrBackendInterface::finalizeIndex in Search API Solr 8.3

Same name and namespace in other branches
  1. 8.2 src/SolrBackendInterface.php \Drupal\search_api_solr\SolrBackendInterface::finalizeIndex()
  2. 4.x src/SolrBackendInterface.php \Drupal\search_api_solr\SolrBackendInterface::finalizeIndex()

Apply any finalization commands to a solr index.

Only if globally configured to do so and only the first time after changes to the index from the drupal side.

Parameters

\Drupal\search_api\IndexInterface $index: The Search API index entity.

Return value

bool TRUE if a finalization run, FALSE otherwise. FALSE doesn't indicate an error!

Throws

\Drupal\Component\Plugin\Exception\PluginException

\Drupal\search_api\SearchApiException

\Drupal\search_api_solr\SearchApiSolrException

1 method overrides SolrBackendInterface::finalizeIndex()
SearchApiSolrBackend::finalizeIndex in src/Plugin/search_api/backend/SearchApiSolrBackend.php
Apply any finalization commands to a solr index.

File

src/SolrBackendInterface.php, line 303

Class

SolrBackendInterface
Defines an interface for Solr search backend plugins.

Namespace

Drupal\search_api_solr

Code

public function finalizeIndex(IndexInterface $index);