protected function MultilingualViewsTest::indexItems in Search API Solr 8.2
Indexes all (unindexed) items on the specified index.
Parameters
string $index_id: The ID of the index on which items should be indexed.
Return value
int The number of successfully indexed items.
Throws
\Drupal\search_api\SearchApiException
Overrides ExampleContentTrait::indexItems
1 call to MultilingualViewsTest::indexItems()
- MultilingualViewsTest::setUp in tests/
src/ Functional/ MultilingualViewsTest.php
File
- tests/
src/ Functional/ MultilingualViewsTest.php, line 86
Class
- MultilingualViewsTest
- Tests the Views integration of the Search API.
Namespace
Drupal\Tests\search_api_solr\FunctionalCode
protected function indexItems($index_id) {
$index_status = parent::indexItems($index_id);
$index = Index::load($index_id);
$this
->ensureCommit($index
->getServerInstance());
return $index_status;
}