You are here

protected function SearchApiSolrTest::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

6 calls to SearchApiSolrTest::indexItems()
SearchApiSolrTest::checkBackendSpecificFeatures in tests/src/Kernel/SearchApiSolrTest.php
Checks backend specific features.
SearchApiSolrTest::testAutocomplete in tests/src/Kernel/SearchApiSolrTest.php
Tests the autocomplete support.
SearchApiSolrTest::testDatasourceAdditionAndDeletion in tests/src/Kernel/SearchApiSolrTest.php
Tests addition and deletion of a data source.
SearchApiSolrTest::testHighlightAndExcerpt in tests/src/Kernel/SearchApiSolrTest.php
Tests highlight and excerpt options.
SearchApiSolrTest::testNgramResult in tests/src/Kernel/SearchApiSolrTest.php
Tests ngram search result.

... See full list

File

tests/src/Kernel/SearchApiSolrTest.php, line 158

Class

SearchApiSolrTest
Tests index and search capabilities using the Solr search backend.

Namespace

Drupal\Tests\search_api_solr\Kernel

Code

protected function indexItems($index_id) {
  $index_status = parent::indexItems($index_id);
  sleep($this->waitForCommit);
  return $index_status;
}