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.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 2894722_apachesolr_multilingual_url_ss-language_fix.patch | 2.11 KB | jrusse27 |
| #2 | apachesolr_multilingual-url_prefix_fix.patch | 1.68 KB | jrusse27 |
Comments
Comment #2
jrusse27 commentedIncluded a patch that is functionally and logically correct, however I'm sure there is a better way of identifying the original document.
Comment #3
jrusse27 commentedUpdated patch that accounts for nodes that are actually translated.