function hook_search_api_elasticsearch_elastica_documents_alter in Search API Elasticsearch 7
Allows modules to alter documents before sending to Elasticsearch.
Parameters
array $documents: An array of documents ready to be indexed, generated from $items array.
SearchApiIndex $index: The search index for which items are being indexed.
array $items: An array of items being indexed.
1 invocation of hook_search_api_elasticsearch_elastica_documents_alter()
- SearchApiElasticsearchElastica::indexItems in modules/
elastica/ includes/ SearchApiElasticsearchElastica.inc - Overrides indexItems().
File
- modules/
elastica/ search_api_elasticsearch_elastica.api.php, line 42 - This file contains no working PHP code; it exists to provide additional documentation for Doxygen as well as to document hooks in the standard Drupal manner.
Code
function hook_search_api_elasticsearch_elastica_documents_alter(array &$documents, SearchApiIndex $index, array $items) {
}