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)}

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 11:31:49
Script start
Timing: Jan 18 2025 11:31:49
Module start 'layout'
Timing: Jan 18 2025 11:31:49
Module start 'content'
Timing: Jan 18 2025 11:31:50
Module end 'content'
Timing: Jan 18 2025 11:31:50
Script end

Main resources:

Total runtime0.7153 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0076 589.2813152.6563
Module start 'layout' 0.00760.0036 741.937539.5078
Module start 'content' 0.01120.7027 781.4453513.7734
Module end 'content' 0.71400.0013 1,295.218812.0938
Script end 0.7152  1,307.3125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4774160.0002
Check MTime0.00140.1905160.0001
Mysql Total
Database connection0.00130.177110.0013
Mysqli_queries0.667293.2746620.0108
Looping result0.00070.1040600.0000
Template Total0.677794.720.3389
Template load0.00210.290820.0010
Template processing0.675694.456220.3378
Template load and register function0.00030.037610.0003
states
state_id_array0.00110.147610.0011
state_identifier_array0.00150.214520.0008
Override
Cache load0.00170.2379240.0001
Sytem overhead
Fetch class attribute can translate value0.00070.103030.0002
Fetch class attribute name0.00120.161540.0003
XML
Image XML parsing0.00040.052330.0001
class_abstraction
Instantiating content class attribute0.00000.001340.0000
General
dbfile0.00070.0938100.0001
String conversion0.00000.001340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs