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);
}
Comment | File | Size | Author |
---|---|---|---|
#1 | 2307367.patch | 1.54 KB | mkalkbrenner |
Comments
Comment #1
mkalkbrennerCan you test this patch?
Comment #3
Daemon_Byte CreditAttribution: Daemon_Byte commentedThat patch works thanks
Comment #5
mkalkbrennerComment #7
mkalkbrenner