I have the module apachesolr attachments module installed with entity translate translating the fields. I noticed that only 1 of the languages was having the document attached. When I looked into it I found in apachesolr_multilingual.module on line 186 you call apachesolr_index_node_solr_document and this resets the content. I'm not sure why this is being called or if this is a problem that should be addressed here or in attachments but it would be nice if it would work. Currently I'm having to use an alter hook to change it back again if anyone else has this problem.

function example_apachesolr_multilingual_index_document_alter(&$document, $language, &$entity, $entity_type, $env_id) {
apachesolr_attachments_node_solr_document($document, $entity, $env_id);
}

CommentFileSizeAuthor
#1 2307367.patch1.54 KBmkalkbrenner
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mkalkbrenner’s picture

Status: Active » Needs review
FileSize
1.54 KB

Can you test this patch?

Status: Needs review » Needs work

The last submitted patch, 1: 2307367.patch, failed testing.

Daemon_Byte’s picture

Version: 7.x-1.0 » 7.x-1.x-dev
Status: Needs work » Reviewed & tested by the community

That patch works thanks

  • mkalkbrenner committed 139a938 on 7.x-1.x
    Issue #2307367 by Daemon_Byte, mkalkbrenner: make the module compatible...
mkalkbrenner’s picture

Version: 7.x-1.x-dev » 6.x-3.x-dev
Status: Reviewed & tested by the community » Patch (to be ported)

  • mkalkbrenner committed 6297120 on 6.x-3.x
    Issue #2307367 by Daemon_Byte, mkalkbrenner: make the module compatible...
mkalkbrenner’s picture

Status: Patch (to be ported) » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.