Forums / Developer / Problem with search - ezfind
viraj hoober
Thursday 12 August 2010 4:45:43 am
Hi. I have a site with 2 different siteaccess, eng and fre. I populated the content from csv and it appears on both siteacces which is fine. The problem comes when i do a search. I get result for one and no result for the other despite both have same content.
Can someone throw some light please?
Jérôme Vieilledent
Saturday 14 August 2010 2:03:41 am
Hi Viraj
Take a look at ezfind.ini file. There is a setting SearchMainLanguageOnly in [LanguageSearch] which is enabled by default.
Comments in ezfind.ini says :
[LanguageSearch] # It is possible to search all languages simultaneously, but the common use case is to search only the main language ## Example : # in site.ini : ## [RegionalSettings] # SiteLanguageList[] # SiteLanguageList[]=eng-GB # SiteLanguageList[]=fre-FR ## When SearchMainLanguageOnly is set to 'enabled', only results in the first language # in site.ini[RegionalSettings].SiteLanguageList[] will be returned. ## When SearchMainLanguageOnly is set to 'disabled', results will be returned with respecting # the fallback defined in site.ini[RegionalSettings].SiteLanguageList[] : # Of all matching results, the ones in eng-GB will be returned, and in case no translation in # eng-GB exists for a result, it will be returned in fre-FR if existing.SearchMainLanguageOnly=enabled[LanguageSearch] # It is possible to search all languages simultaneously, but the common use case is to search only the main language ## Example : # in site.ini : ## [RegionalSettings] # SiteLanguageList[]# SiteLanguageList[]=eng-GB # SiteLanguageList[]=fre-FR ## When SearchMainLanguageOnly is set to 'enabled', only results in the first language # in site.ini[RegionalSettings].SiteLanguageList[] will be returned. ## When SearchMainLanguageOnly is set to 'disabled', results will be returned with respecting # the fallback defined in site.ini[RegionalSettings].SiteLanguageList[] : # Of all matching results, the ones in eng-GB will be returned, and in case no translation in # eng-GB exists for a result, it will be returned in fre-FR if existing.SearchMainLanguageOnly=enabled