protected function FacetsTest::indexItems in Search API Solr 8.3
Same name and namespace in other branches
- 8 tests/src/Functional/FacetsTest.php \Drupal\Tests\search_api_solr\Functional\FacetsTest::indexItems()
- 8.2 tests/src/Functional/FacetsTest.php \Drupal\Tests\search_api_solr\Functional\FacetsTest::indexItems()
- 4.x tests/src/Functional/FacetsTest.php \Drupal\Tests\search_api_solr\Functional\FacetsTest::indexItems()
Indexes all (unindexed) items on the specified index.
Return value
int The number of successfully indexed items.
Throws
\Drupal\search_api\SearchApiException
1 call to FacetsTest::indexItems()
- FacetsTest::testFacets in tests/
src/ Functional/ FacetsTest.php - Tests basic facets integration.
File
- tests/
src/ Functional/ FacetsTest.php, line 102
Class
- FacetsTest
- Tests the facets functionality using the Solr backend.
Namespace
Drupal\Tests\search_api_solr\FunctionalCode
protected function indexItems($index_id) {
$index_status = $this
->doindexItems($index_id);
$index = Index::load($this->indexId);
$this
->ensureCommit($index);
return $index_status;
}