Forums / General / Search problem within different translations of the object

Search problem within different translations of the object

Author Message

Roman Pszonczenko

Wednesday 09 July 2003 5:41:53 am

I have the following problem:
I defined three translations for my object (english, polish and russian). ContentObjectLocale in site.ini was set to
pol-PL. As a result during publishing the object the words from polish translation were added only to ezsearch_word table in the database and this affected search conditions - only polish version was searchable.
Then I changed ContentObjectLocale to eng-GB and republished my object again, only words from english translation were added to ezsearch_word table and only english version of my object was serchable.
The same situation was with russian translation.
If anybody knows how to deal with it, please help me.

Albert Berenguer

Friday 10 October 2003 9:41:26 am

maybe you found it too, and i'm late, but i had the same problem and found the solution here:

http://ez.no/developer/ez_publish_3/bug_reports/search_translated_words

bye!

Esben Visfeldt

Tuesday 09 March 2004 11:44:39 am

I have a follow up question to this search problem.
As a bug resolution, Bård Farstad (04/02/2004 8:54 am) wrote:
"As of version 3.3 eZ publish indexes all translations of an object and will return a hit on any translation when searching."
I've installed ezPublish 3.3 and I've built a multilingual site. For each language site I have a search page, and I only want results in the current language, e.g. english site returns search result pages with english content. According to my interpretation of what Bård says, if I search for a particular word that exists in several translations of the same node, the search engine will return the node several times. I should then be able to look at the object.default_language and language_code and if they are not equal, discard the result. But I can't get it to work...I think I've missed something. Is it through the
contentobject_version_object.translation.language_code that I see the current translation language or some other value???
Please, help!

Esben Visfeldt

Wednesday 10 March 2004 9:43:42 pm

After some more investigation, it seems that even if a word is positively in several translations of the same node, the search engine only returns the node once...and I can't read in which translation the word was found.
In searchresult.tpl, I am reading the results from the section:
{section name=SearchResult loop=$search_result show=$search_result sequence=array(bglight,bgdark)}

eZ debug

Timing: Jan 31 2025 04:19:43
Script start
Timing: Jan 31 2025 04:19:43
Module start 'content'
Timing: Jan 31 2025 04:19:43
Module end 'content'
Timing: Jan 31 2025 04:19:43
Script end

Main resources:

Total runtime0.1396 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0068 588.1797180.8047
Module start 'content' 0.00680.0075 768.984493.8359
Module end 'content' 0.01430.1253 862.8203522.9219
Script end 0.1396  1,385.7422 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00342.4607200.0002
Check MTime0.00140.9935200.0001
Mysql Total
Database connection0.00100.712010.0010
Mysqli_queries0.095068.02811410.0007
Looping result0.00110.77291390.0000
Template Total0.125089.510.1250
Template load0.00080.603010.0008
Template processing0.124188.900710.1241
Override
Cache load0.00060.416910.0006
Sytem overhead
Fetch class attribute can translate value0.00090.636010.0009
XML
Image XML parsing0.00030.204910.0003
General
dbfile0.00755.3963200.0004
String conversion0.00000.004430.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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