You are here

public function BackendSpecificInterface::indexItems in Search API 8

Indexes the specified items.

Parameters

\Drupal\search_api\IndexInterface $index: The search index for which items should be indexed.

\Drupal\search_api\Item\ItemInterface[] $items: An array of items to be indexed, keyed by their item IDs.

Return value

string[] The IDs of all items that were successfully indexed.

Throws

\Drupal\search_api\SearchApiException Thrown if indexing was prevented by a fundamental configuration error.

4 methods override BackendSpecificInterface::indexItems()
Database::indexItems in modules/search_api_db/src/Plugin/search_api/backend/Database.php
Indexes the specified items.
NoUi::indexItems in tests/search_api_test_no_ui/src/Plugin/search_api/backend/NoUi.php
Indexes the specified items.
Server::indexItems in src/Entity/Server.php
Indexes the specified items.
TestBackend::indexItems in tests/search_api_test/src/Plugin/search_api/backend/TestBackend.php
Indexes the specified items.

File

src/Backend/BackendSpecificInterface.php, line 176

Class

BackendSpecificInterface
Defines methods common to search servers and backend plugins.

Namespace

Drupal\search_api\Backend

Code

public function indexItems(IndexInterface $index, array $items);