You are here

function hook_apachesolr_index_document_build in Apache Solr Search 8

Same name and namespace in other branches
  1. 6.3 apachesolr.api.php \hook_apachesolr_index_document_build()
  2. 7 apachesolr.api.php \hook_apachesolr_index_document_build()

Build the documents before sending them to Solr. The function is the follow-up for apachesolr_update_index

Parameters

ApacheSolrDocument $document:

object $entity:

string $entity_type:

string $env_id: The machine name of the environment.

1 function implements hook_apachesolr_index_document_build()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

field_apachesolr_index_document_build in ./apachesolr.module
Implements hook_apachesolr_index_document_build().
1 invocation of hook_apachesolr_index_document_build()
apachesolr_convert_entity_to_documents in ./apachesolr.index.inc
The given entity is converted to an array via the callback specified in the entity type's info array. The array that the entity is converted to is the model of the document sent to the Apache Solr server for indexing. This function allows…

File

./apachesolr.api.php, line 387
Exposed Hooks in 7.x:

Code

function hook_apachesolr_index_document_build(ApacheSolrDocument $document, $entity, $entity_type, $env_id) {
}