public function SearchApiElasticsearchIndex::indexItems in Search API Elasticsearch 7.2
Add documents to Elasticsearch index.
Parameters
$documents:
Return value
array
File
- includes/
SearchApiElasticsearchIndex.inc, line 110
Class
Code
public function indexItems($documents) {
$index = $this
->getRealIndex();
$index
->addDocuments($documents);
$index
->refresh();
return array_keys($documents);
}