You are here

public function IndexInterface::indexSpecificItems in Search API 8

Indexes some objects on this index.

Will return the IDs of items that were marked as indexed – that is, items that were either rejected from indexing (by a processor or alter hook) or were successfully indexed.

Parameters

\Drupal\Core\TypedData\ComplexDataInterface[] $search_objects: An array of search objects to be indexed, keyed by their item IDs.

Return value

string[] The IDs of all items that should be marked as indexed.

Throws

\Drupal\search_api\SearchApiException Thrown if any error occurred during indexing.

2 methods override IndexInterface::indexSpecificItems()
Index::indexSpecificItems in src/Entity/Index.php
Indexes some objects on this index.
UnsavedIndexConfiguration::indexSpecificItems in src/UnsavedIndexConfiguration.php
Indexes some objects on this index.

File

src/IndexInterface.php, line 611

Class

IndexInterface
Defines the interface for index entities.

Namespace

Drupal\search_api

Code

public function indexSpecificItems(array $search_objects);