Problem with ezFind and translations

Author Message

Ivan Švogor

Thursday 07 April 2011 5:20:36 am

Hi, I have interesting problem with URLs of search results (ezFind). Our Web site has 2 translations and when I translate content in both language under search results everything is OK except from URL-s which are in the language which was last edited.

Example:

Search in Croatian on word "MedjunarodnaXYZ" gives me flowing output:

MedjunarodnaXYZ
MedjunarodnaXYZ/cro/suradnja/medjunarodna_url_xyz/(language)/cro-HR
Objavljeno: 08.12.2010. 13:30

Search in English on word "InternationalXYZ" gives me flowing output:

InternationalXYZ
InternationalXYZ
/eng/suradnja/medjunarodna_url_xyz/(language)/eng-GB
Objavljeno: 08.12.2010. 13:30

You can notice that URL of content that was in the English is wrong. This is because I edited the Croatian translation last. It would be opposite if I would now edit the English translation.

Everything else is OK (content itself), and when I look in Solar I see that URL-s in both documents (both translations) are always the same (from last edit):

<arr name="meta_url_alias_s"><str>suradnja/medjunarodna_url_xyz</str></arr>

This is obviously wrong and each <doc> for each translation should have different url.

Is this bug in ezFind or do we maybe have some problem in our site.ini.append.php files for every siteaccess (cro and eng).

Quoc Huy Nguyen Dinh

Wednesday 13 April 2011 8:36:52 am

Try to configure Solr to use multicore, one core per language. Then you can use the same core for multiple websites in the same language. Then configure ezfind.ini to map each siteaccess (language) to the corresponding core URL.

http://doc.ez.no/Extensions/eZ-Publish-extensions/eZ-Find/2.3/Advanced-Configuration/Using-multi-core-features

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 30 2025 00:18:52
Script start
Timing: Jan 30 2025 00:18:52
Module start 'layout'
Timing: Jan 30 2025 00:18:52
Module start 'content'
Timing: Jan 30 2025 00:18:52
Module end 'content'
Timing: Jan 30 2025 00:18:52
Script end

Main resources:

Total runtime0.7519 sec
Peak memory usage4,096.0000 KB
Database Queries56

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 588.2813151.2266
Module start 'layout' 0.00470.0030 739.507836.6875
Module start 'content' 0.00770.7435 776.1953476.8047
Module end 'content' 0.75130.0006 1,253.00007.8203
Script end 0.7519  1,260.8203 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00290.3843160.0002
Check MTime0.00120.1626160.0001
Mysql Total
Database connection0.00060.085010.0006
Mysqli_queries0.717095.3519560.0128
Looping result0.00030.0432540.0000
Template Total0.721896.020.3609
Template load0.00190.252420.0009
Template processing0.719995.742220.3600
Template load and register function0.00010.016210.0001
states
state_id_array0.00070.088810.0007
state_identifier_array0.00080.100520.0004
Override
Cache load0.00160.2128330.0000
Sytem overhead
Fetch class attribute can translate value0.00040.049020.0002
Fetch class attribute name0.00070.092030.0002
XML
Image XML parsing0.00160.214820.0008
class_abstraction
Instantiating content class attribute0.00000.000730.0000
General
dbfile0.00180.2387160.0001
String conversion0.00000.001040.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.tplEdit templateOverride template
8content/datatype/view/ezxmltags/emphasize.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/emphasize.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 27
 Number of unique templates used: 8

Time used to render debug report: 0.0001 secs