function ds_search_apachesolr_index_document_build in Display Suite 7.2
Implements hook_apachesolr_index_document_build().
File
- modules/
ds_search/ ds_search.module, line 661 - Display Suite search.
Code
function ds_search_apachesolr_index_document_build(ApacheSolrDocument $document, $entity) {
// Apache Solr multisite support. Render the node already here.
if (variable_get('ds_search_apachesolr_multisite')) {
ob_start();
$element = node_view($entity, variable_get('ds_search_view_mode', 'search_result'));
print drupal_render($element);
$output = ob_get_contents();
ob_end_clean();
$document
->addField('tm_ds_search_result', $output);
}
}