You are here

public function FileSearch::markForReindex in Search File Attachments 8

Marks the search index for reindexing for this plugin.

When a request is made to mark all items from the search index related to this plugin for reindexing, this method will be called. If this plugin uses the default search index, this method can call markForReindex($type) method on the search.index service class to mark the items in the search database for reindexing.

Overrides SearchIndexingInterface::markForReindex

See also

\Drupal\search\SearchIndexInterface::markForReindex()

File

src/Plugin/Search/FileSearch.php, line 277

Class

FileSearch
Executes a keyword search for files against {file_managed} database table.

Namespace

Drupal\search_file_attachments\Plugin\Search

Code

public function markForReindex() {

  // All NodeSearch pages share a common search index "type" equal to
  // the plugin ID.
  search_mark_for_reindex($this
    ->getPluginId());
}