protected function ElasticsearchTest::indexItems in Elasticsearch Connector 8
Same name and namespace in other branches
- 8.2 src/Tests/ElasticsearchTest.php \Drupal\elasticsearch_connector\Tests\ElasticsearchTest::indexItems()
1 call to ElasticsearchTest::indexItems()
- ElasticsearchTest::regressionTests2 in src/
Tests/ ElasticsearchTest.php
File
- src/
Tests/ ElasticsearchTest.php, line 91 - Contains \Drupal\elasticsearch_connector\Tests\ElasticsearchTest.
Class
- ElasticsearchTest
- Tests index and search capabilities using the elasticsearch backend.
Namespace
Drupal\elasticsearch_connector\TestsCode
protected function indexItems($index_id) {
/** @var \Drupal\search_api\Index\IndexInterface $index */
$index = Index::load($index_id);
$index
->setOption('index_directly', TRUE);
return $index
->index();
}