Hello everyone,
I have very strange behavior in Alfresco Community v5.1.e. We have the custom content model and based on it we created FTS query which is part of custom GET web script. When we execute this FTS query in Node Browser using different web browsers (Mozilla vs Chrome) we receive different results (Mozilla 2 results, Chrome 0 result). Also if we call this custom GET web script using these browsers the same result set is returned in JSON format (Mozilla 2 results, Chrome 0 result) like in Node Browser.
QUERY:
PATH:"/app:company_home/cm:RFC//*" AND ASPECT:"vech:rfcAspect" AND vech:rfc_published:"true" AND vech:rfc_dossier_number:"eCH-0054" AND vech:rfc_dossier_version:"2.0"
This is first time that I experience this strange behavior and I am working with Alfresco for years. Please take a look at screenshots.
Did anybody had experience which I have described?
Thanks in advance...
Solved! Go to Solution.
It looks like your two browsers have two different locale's set (look at the i18n strings in the bottom left-hand corner of the screenshot: "Users and Groups" versus "Benutzer und Gruppen"). Can you try again making sure that both are using identical locales?
could you paste your search-Term in the Slingshot-Search (Alfresco Share) and see if you experience the same difference?
It looks like your two browsers have two different locale's set (look at the i18n strings in the bottom left-hand corner of the screenshot: "Users and Groups" versus "Benutzer und Gruppen"). Can you try again making sure that both are using identical locales?
Thank you, Jeff, you were right. Language settings in browser affect behavior. By setting the locale in Java API:
SearchParameters sp = new SearchParameters();
sp.addLocale( Locale.GERMAN );
I was able to force it when executing the query and this issue was gone.
Thank you one more time for your help.
Awesome, glad you got it working!
Hi, we had the same issue in our solution. Is there a way to add the locale to a Javascript query or it can be done only in Java?
Thank you.
Thank you very much, the second link solved the issue.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.