function apachesolr_apachesolr_index_document_build_node in Apache Solr Search 7
Same name and namespace in other branches
- 8 apachesolr.module \apachesolr_apachesolr_index_document_build_node()
- 6.3 apachesolr.module \apachesolr_apachesolr_index_document_build_node()
Implements hook_apachesolr_index_document_build_node().
Adds book module support
File
- ./
apachesolr.module, line 2289 - Integration with the Apache Solr search application.
Code
function apachesolr_apachesolr_index_document_build_node(ApacheSolrDocument $document, $entity, $env_id) {
// Index book module data.
if (!empty($entity->book['bid'])) {
// Hard-coded - must change if apachesolr_index_key() changes.
$document->is_book_bid = (int) $entity->book['bid'];
}
}