You are here

function opigno_search_update_8002 in Opigno Search 8

Rebuild Index search after.

File

./opigno_search.install, line 39
Module install/update functionality.

Code

function opigno_search_update_8002() {

  // Necessary since ver.2.9 to 2.11.
  $index = Index::load('default_index');
  $index
    ->disable();
  $index
    ->save();
  $index
    ->enable();
  $index
    ->rebuildTracker();
  $index
    ->reindex();
  $index
    ->save();
}