cancel
Showing results for 
Search instead for 
Did you mean: 

Wrong results using search

jumpm7
Champ in-the-making
Champ in-the-making
Hallo,

I found a very stange problem in our Alfresco installation (v 2.1): the search function gives different results if I change the language (and all the outher parameters are the same: user and keyword searched)!!!!!!!
More specifically, we are using Italian package. So when the user login he choose the Italian language instead of the default English. Well, using Italian language, I get different and not complete results compared whith English language.
Waiting some help I will disable for the moment Italia langiage.

Thanks

Gianpaolo
3 REPLIES 3

mrogers
Star Contributor
Star Contributor
Search via lucene queries is locale specific, this is why you are getting different results.

http://wiki.alfresco.com/wiki/Search#Searching_Multilingual_Text_Fields

jumpm7
Champ in-the-making
Champ in-the-making
woaw! Now I understand… Really we are not in a multilanguage enviroment, but adding the Italian language I did this entry in web-client-config-custom.xml:

   <config evaluator="string-compare" condition="Languages">
      <languages>
         <language locale="it_IT">Italian</language>
     </languages>
   </config>

Therefore at login the users have the choise between English (default) and Italian. Most of the times the users login with Italian (changing the default) but sometimes the log with English. So, if I got how is working, it looks like the objects created with one language are in a different set from the point of wiev of lucene. 
Now I have set properly the language selection to force only italian modifing the entry in  such way:

   <config evaluator="string-compare" condition="Languages" replace="true">
      <languages>
         <language locale="it_IT">Italian</language>
     </languages>
   </config>

Well I will follow deeply yuor link to lucene docs and I will try to solve the situation. Anyway, if you have some ideas to solve this little mess I would be really grateful. 🙂

Thanks a lot

Gianpaolo

jumpm7
Champ in-the-making
Champ in-the-making
Well.. I have to be honest: it's not so easy for me understand deeply lucene behaviour  Smiley Sad
What I got are some guidelines and basic concepts but not enougth to solve the problem. I had a look also at Munwar Shariff's book in search section: it's seems possible to "convert" all the object to only one language but it's not explained how.  Could that be a solution? I really need a strong help otherwise I'll take a very long time to get out :shock:  

Many thanks for the help.

Gianpaolo