protected function SearchApiSolrLocationTest::indexItems in Search API Solr 8
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
1 call to SearchApiSolrLocationTest::indexItems()
- SearchApiSolrLocationTest::commonSolrBackendSetUp in tests/
src/ Kernel/ SearchApiSolrLocationTest.php - Required parts of the setUp() function that are the same for all backends.
File
- tests/
src/ Kernel/ SearchApiSolrLocationTest.php, line 153
Class
- SearchApiSolrLocationTest
- 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);
sleep($this->waitForCommit);
return $index_status;
}