You are here

public function UnsavedIndexConfiguration::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.

Overrides IndexInterface::indexSpecificItems

File

src/UnsavedIndexConfiguration.php, line 548

Class

UnsavedIndexConfiguration
Represents a configuration of an index that was not yet permanently saved.

Namespace

Drupal\search_api

Code

public function indexSpecificItems(array $search_objects) {
  return $this->entity
    ->indexSpecificItems($search_objects);
}