You are here

protected function Basic::createUpdateStatement in Search API 8

Creates an UPDATE statement for this tracker.

Return value

\Drupal\Core\Database\Query\Update An UPDATE statement.

3 calls to Basic::createUpdateStatement()
Basic::trackAllItemsUpdated in src/Plugin/search_api/tracker/Basic.php
Marks all items as updated, or only those of a specific datasource.
Basic::trackItemsIndexed in src/Plugin/search_api/tracker/Basic.php
Marks items as indexed for this index.
Basic::trackItemsUpdated in src/Plugin/search_api/tracker/Basic.php
Marks the given items as updated for this index.

File

src/Plugin/search_api/tracker/Basic.php, line 166

Class

Basic
Provides a tracker implementation which uses a FIFO-like processing order.

Namespace

Drupal\search_api\Plugin\search_api\tracker

Code

protected function createUpdateStatement() {
  return $this
    ->getDatabaseConnection()
    ->update('search_api_item')
    ->condition('index_id', $this
    ->getIndex()
    ->id());
}