public function IndexInterface::clear in Search API 8
Clears all indexed data from this index and marks it for reindexing.
Throws
\Drupal\search_api\SearchApiException Thrown if the server couldn't be loaded, for example.
2 methods override IndexInterface::clear()
- Index::clear in src/
Entity/ Index.php - Clears all indexed data from this index and marks it for reindexing.
- UnsavedIndexConfiguration::clear in src/
UnsavedIndexConfiguration.php - Clears all indexed data from this index and marks it for reindexing.
File
- src/
IndexInterface.php, line 706
Class
- IndexInterface
- Defines the interface for index entities.
Namespace
Drupal\search_apiCode
public function clear();