Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When the option "Limit search to current language by default" is enabled for a search page in combination with the CLIR environment option, language fields other than the node's language are excluded from the Solr query. This defeats the purpose of CLIR as all language fields should be queried in order to return the node in default language for search terms in other languages.
IMHO this is how I understood CLIR.
Comment | File | Size | Author |
---|---|---|---|
#5 | apachesolr_multilingual_clir_boost.patch | 4.23 KB | gnindl |
Bug_2143_CLIR_fix__Search_all_language_fields_when_CLIR_is_activated.patch | 3.68 KB | gnindl | |
Comments
Comment #3
mkalkbrennerYou're right. The performance optimization of reducing query fields broke the CLIR feature if the search is limited to one or more languages.
The correct behavior is that all language specific fields added to node by CLIR have to be searched if the node's language (ss_language) is one of the languages the query is limited to.
Committed to 6.x and 7.x.
Comment #5
gnindl CreditAttribution: gnindl commentedIn this patch multilingual fields should be boosted despite of CLIR settings.
Comment #7
mkalkbrenner