You are here

public function SearchApiSolrBackend::updateIndex in Search API Solr 4.x

Same name and namespace in other branches
  1. 8.3 src/Plugin/search_api/backend/SearchApiSolrBackend.php \Drupal\search_api_solr\Plugin\search_api\backend\SearchApiSolrBackend::updateIndex()
  2. 8 src/Plugin/search_api/backend/SearchApiSolrBackend.php \Drupal\search_api_solr\Plugin\search_api\backend\SearchApiSolrBackend::updateIndex()
  3. 8.2 src/Plugin/search_api/backend/SearchApiSolrBackend.php \Drupal\search_api_solr\Plugin\search_api\backend\SearchApiSolrBackend::updateIndex()

File

src/Plugin/search_api/backend/SearchApiSolrBackend.php, line 972

Class

SearchApiSolrBackend
Apache Solr backend for search api.

Namespace

Drupal\search_api_solr\Plugin\search_api\backend

Code

public function updateIndex(IndexInterface $index) {
  if ($this
    ->indexFieldsUpdated($index)) {
    $index
      ->reindex();
    $this
      ->getSolrFieldNames($index, TRUE);
  }
}