Repeatable: Always

Dependencies:
Entity Translation
Apache Solr
Apache Solr Multilingual

Steps to repeat:
1. Have 3 translations of a node, 'en', 'en-AU', 'en-NZ' which are accessible at '/int/node/%nid', '/node/%nid', '/nz/node/%nid', respectively.
2. Set 'This is a multilingual index' to true
3. Set 'Map language-neutral' to All languages
4. Delete index & re index 1 node

Expected Results:
3 documents should be indexed, each with the correct language and the correct prefixed url set

Actual Results:
3 documents are indexed, each with the correct language, however the url on the 'en' document is missing the /int prefix, but the 'en-NZ' document does have the correct /nz prefix

Additional:
If i comment out Line 104 of apachesolr_multilingual.module, 'array_shift($active_languages);' then the indexing instead returns 4 documents, one for language undefined and the other three correctly prefixed.

Comments

jrusse27 created an issue. See original summary.

jrusse27’s picture

Included a patch that is functionally and logically correct, however I'm sure there is a better way of identifying the original document.

jrusse27’s picture

Updated patch that accounts for nodes that are actually translated.