public function BackendSpecificInterface::deleteItems in Search API 8
Deletes the specified items from the index.
Parameters
\Drupal\search_api\IndexInterface $index: The index from which items should be deleted.
string[] $item_ids: The IDs of the deleted items.
Throws
\Drupal\search_api\SearchApiException Thrown if an error occurred while trying to delete the items.
4 methods override BackendSpecificInterface::deleteItems()
- Database::deleteItems in modules/
search_api_db/ src/ Plugin/ search_api/ backend/ Database.php - Deletes the specified items from the index.
- NoUi::deleteItems in tests/
search_api_test_no_ui/ src/ Plugin/ search_api/ backend/ NoUi.php - Deletes the specified items from the index.
- Server::deleteItems in src/
Entity/ Server.php - Deletes the specified items from the index.
- TestBackend::deleteItems in tests/
search_api_test/ src/ Plugin/ search_api/ backend/ TestBackend.php - Deletes the specified items from the index.
File
- src/
Backend/ BackendSpecificInterface.php, line 189
Class
- BackendSpecificInterface
- Defines methods common to search servers and backend plugins.
Namespace
Drupal\search_api\BackendCode
public function deleteItems(IndexInterface $index, array $item_ids);