ApacheSolr Search Language Fallback

Categories

Component ID

2487838

Component name

ApacheSolr Search Language Fallback

Component type

module

Maintenance status

Development status

Component security advisory coverage

covered

Downloads

627

Component created

Component changed

Component body

Simple Module. No configuration required. Reindex content after enabling the module.

On a multilingual site, Apachesolr by default shows search results from all languages. This module when enabled, displays search results from the current language of the site whenever available and the default language results as a fallback if the search term matches the content from a default language when the translation is not available.

ie:
If a node is not available in the current language and if the search term matches the content of the node present in the default language of the site, then the default language node is shown in the search results, as a fallback.

Affects all ApacheSolr searches on the site.

Obviously Requires Apachesolr module to be enabled and your site to be multilingual. The default language of the site is determined from what is set @ admin/config/regional/language on your site.