Multi language site, urlalias are not those of the right language

Author Message

Jean-François Sénéchal

Friday 15 October 2010 7:58:51 am

Hi,
I updated my searchengie like this :

#frensh
php extension/ezfind/bin/php/updatesearchindexsolr.php -s marche-be --php-exec=/usr/bin/php --clean
#dutch
php extension/ezfind/bin/php/updatesearchindexsolr.php -s nl-marche-be --php-exec=/usr/bin/php

when I search something, research is done in the right language, but the node urlalias is the dutch and not the french !
what's wrong ?
Ez 4.2
Ezfind 2.0.0

L'informaticien est comme un petit canard:
il est calme en surface mais en dessous il brasse beaucoup d'eau pour
avancer ...!

Jean-François Sénéchal

Monday 18 October 2010 4:38:23 am

any idea ?

L'informaticien est comme un petit canard:
il est calme en surface mais en dessous il brasse beaucoup d'eau pour
avancer ...!

Nicolas Pastorino

Monday 18 October 2010 11:30:49 am

Hi,

Have you tried running the CLI script with you admin siteaccess' name as -s parameter ? Normally, one does not need to run this for every front siteaccess. Also, where are you having the URL issues from ? Back office or one of the frontend siteaccesses ?

Let us know,
Cheers,

--
Nicolas

Jean-François Sénéchal

Tuesday 19 October 2010 4:31:59 am

Hi

I have 3 sites access :

marche-be : default in french

nl-marche-be : dutch

admin-marche-be

I index my search engine with :

php extension/ezfind/bin/php/updatesearchindexsolr.php -s marche-be --php-exec=/usr/bin/php --clean

I can found a exemple :

french : http://www.marche.be/content/advancedsearch/?SearchText=conseil&x=0&y=0

dutch : http://nl.marche.be/content/advancedsearch/?SearchText=dienst&x=0&y=0

thanks

L'informaticien est comme un petit canard:
il est calme en surface mais en dessous il brasse beaucoup d'eau pour
avancer ...!

Jean-François Sénéchal

Tuesday 19 October 2010 8:48:00 am

No it works

I launch php extension/ezfind/bin/php/updatesearchindexsolr.php -s admin-marche-be --php-exec=/usr/bin/php --clean

I have replace in extension/ezfind/design/standard/templates/node/view/ezfind_line.tpl

<a href="{$node.global_url_alias}">{$node.name|wash}</a>

by

<a href="/{$node.url_alias}">{$node.name|wash}</a>

with "/" in the beginning (important)

L'informaticien est comme un petit canard:
il est calme en surface mais en dessous il brasse beaucoup d'eau pour
avancer ...!

Nicolas Pastorino

Wednesday 20 October 2010 12:50:26 am

Hi Jean-François,

Good to hear you sorted this out. You should slightly amend the template code as follows :

<a href={$node.url_alias|ezurl}>{$node.name|wash}</a>

which makes the code more portable, and much closer to eZ Publish standards.

Also please note that using .url_alias instead of .global_url_alias may be blocking in case you retrieve search results from other eZ Publish instances (3rd-party search with eZ Find). This is probably not the case for now, but should this happen in the future, come back to this thread and have another look at it.

Cheers !

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

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

Main resources:

Total runtime0.0241 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 588.6406151.2734
Module start 'layout' 0.00470.0048 739.9141220.7734
Module start 'content' 0.00950.0131 960.68751,007.1797
Module end 'content' 0.02260.0015 1,967.867237.9766
Script end 0.0241  2,005.8438 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002711.2830140.0002
Check MTime0.00114.6693140.0001
Mysql Total
Database connection0.00062.522110.0006
Mysqli_queries0.003113.013830.0010
Looping result0.00000.070210.0000
Template Total0.00114.810.0011
Template load0.00093.762310.0009
Template processing0.00020.974210.0002
Override
Cache load0.00062.550710.0006
General
dbfile0.00114.542780.0001
String conversion0.00000.045540.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