You are here

public function Index::trackItemsInserted in Search API 8

Adds items from a specific datasource to the index.

Note that this method receives datasource-specific item IDs as the parameter, not containing the datasource prefix.

Parameters

string $datasource_id: The ID of the datasource to which the items belong.

array $ids: An array of datasource-specific item IDs.

Overrides IndexInterface::trackItemsInserted

File

src/Entity/Index.php, line 1058

Class

Index
Defines the search index configuration entity.

Namespace

Drupal\search_api\Entity

Code

public function trackItemsInserted($datasource_id, array $ids) {
  $this
    ->trackItemsInsertedOrUpdated($datasource_id, $ids, __FUNCTION__);
}