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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

  • mkalkbrenner committed 53612a2 on 6.x-3.x authored by gnindl
    Issue #2331215 by gnindl: Search all language specific fields when CLIR...

  • mkalkbrenner committed 9f69cbf on 7.x-1.x authored by gnindl
    Issue #2331215 by gnindl: Search all language specific fields when CLIR...
mkalkbrenner’s picture

Status: Active » Fixed

You'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.

Status: Fixed » Closed (fixed)

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

gnindl’s picture

Status: Closed (fixed) » Needs review
FileSize
4.23 KB

In this patch multilingual fields should be boosted despite of CLIR settings.

  • mkalkbrenner committed 9f69cbf on 8.x-1.x authored by gnindl
    Issue #2331215 by gnindl: Search all language specific fields when CLIR...
mkalkbrenner’s picture

Status: Needs review » Closed (fixed)