protected function SolrBackendTestBase::indexItems in Search API Solr 8.3
Same name and namespace in other branches
- 8.2 tests/src/Kernel/SolrBackendTestBase.php \Drupal\Tests\search_api_solr\Kernel\SolrBackendTestBase::indexItems()
- 4.x tests/src/Kernel/SolrBackendTestBase.php \Drupal\Tests\search_api_solr\Kernel\SolrBackendTestBase::indexItems()
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.
Overrides ExampleContentTrait::indexItems
7 calls to SolrBackendTestBase::indexItems()
- SearchApiSolrLocationTest::commonSolrBackendSetUp in tests/
src/ Kernel/ SearchApiSolrLocationTest.php - Required parts of the setUp() function that are the same for all backends.
- SearchApiSolrTest::checkDatasourceAdditionAndDeletion in tests/
src/ Kernel/ SearchApiSolrTest.php - Tests addition and deletion of a data source.
- SearchApiSolrTest::checkHighlight in tests/
src/ Kernel/ SearchApiSolrTest.php - Tests highlight options.
- SearchApiSolrTest::checkRetrieveData in tests/
src/ Kernel/ SearchApiSolrTest.php - Tests retrieve_data options.
- SearchApiSolrTest::checkSearchResultSorts in tests/
src/ Kernel/ SearchApiSolrTest.php - Tests search result sorts.
File
- tests/
src/ Kernel/ SolrBackendTestBase.php, line 121
Class
- SolrBackendTestBase
- Tests location searches and distance facets using the Solr search backend.
Namespace
Drupal\Tests\search_api_solr\KernelCode
protected function indexItems($index_id) {
$index_status = parent::indexItems($index_id);
$index = Index::load($index_id);
$this
->ensureCommit($index);
return $index_status;
}