Problem with search - ezfind

Author Message

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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 05:09:32
Script start
Timing: Jan 18 2025 05:09:32
Module start 'layout'
Timing: Jan 18 2025 05:09:32
Module start 'content'
Timing: Jan 18 2025 05:09:32
Module end 'content'
Timing: Jan 18 2025 05:09:32
Script end

Main resources:

Total runtime0.0180 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0078 587.9141152.6250
Module start 'layout' 0.00780.0031 740.539139.4453
Module start 'content' 0.01090.0051 779.984489.5391
Module end 'content' 0.01600.0019 869.523430.3047
Script end 0.0180  899.8281 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002714.9146140.0002
Check MTime0.00116.3793140.0001
Mysql Total
Database connection0.00095.107110.0009
Mysqli_queries0.004022.177830.0013
Looping result0.00000.094110.0000
Template Total0.00168.810.0016
Template load0.00094.946810.0009
Template processing0.00073.801910.0007
Override
Cache load0.00063.429510.0006
General
dbfile0.00021.288080.0000
String conversion0.00000.043740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs