You are here

function apachesolr_multilingual_index_node_translation in Apache Solr Multilingual 7

1 call to apachesolr_multilingual_index_node_translation()
apachesolr_multilingual_apachesolr_index_documents_alter in ./apachesolr_multilingual.module
Implements hook_apachesolr_index_documents_alter().

File

./apachesolr_multilingual.module, line 310
Multilingual search using Apache Solr.

Code

function apachesolr_multilingual_index_node_translation($document, $translation_node, $env_id) {
  $translation_document = new ApacheSolrDocument();
  $translation_document->ss_language = $translation_node->language;
  apachesolr_index_node_solr_document($translation_document, $translation_node, 'node', $env_id);
  apachesolr_multilingual_copy_common_to_i18n_fields($translation_document, $document);
}