cancel
Showing results for 
Search instead for 
Did you mean: 

Incorrect case of site name using search

acarpine
Champ in-the-making
Champ in-the-making
Dear community,
I have some problems with the Alfresco search feature that sometimes appears to miss some docs in a Site.

After some investigation I noticed that the problem seems due to the case of site name ie using the same input box (the upper-right box - FTS) Alfresco sometimes searches for a site name with lower case and sometimes uses the upper case. Obv the correct result is obtained only when the proper case is used.

The log when it uses the incorrect case is:
16:43:47,206 DEBUG [org.alfresco.repo.jscript.ScriptLogger] Query:
((PATH:"/app:company_home/st:sites/cm:mysitename/*//*" AND (server  AND (+TYPE:"cm:content" +TYPE:"cm:folder")) ) AND -TYPE:"cm:thumbnail" AND -TYPE:"cm:failedThumbnail" AND -TYPE:"cm:rating") AND NOT ASPECT:"sys:hidden"
Sortby:
16:43:47,355 DEBUG [org.alfresco.repo.jscript.ScriptLogger] Processing resultset of length: 0
16:43:47,543 DEBUG [org.alfresco.repo.jscript.ScriptLogger] Filtered resultset to length: 0. Discarded item count: 0

When it uses the correct case it's able to find the docs and the log reports:
16:43:51,91 ((PATH:"/app:company_home/st:sites/cm:MYSITENAME/*//*" AND (server  AND (+TYPE:"cm:content" +TYPE:"cm:folder")) ) AND -TYPE:"cm:thumbnail" AND -TYPE:"cm:failedThumbnail" AND -TYPE:"cm:rating") AND NOT ASPECT:"sys:hidden"
Sortby:
16:43:52,023 DEBUG [org.alfresco.repo.jscript.ScriptLogger] Processing resultset of length: 2
16:43:52,024 DEBUG [org.alfresco.repo.jscript.ScriptLogger] Filtered resultset to length: 2. Discarded item count: 0

Why sometimes it uses the lower case although the site name has been created in upper case (and never changed)?
Any idea?

thanks,
andrea
3 REPLIES 3

amandaluniz_z
Champ on-the-rise
Champ on-the-rise
Hi Andrea,

could you detail the steps you followed to reproduce both?, just trying to figure out if there's anything different… Might be you are using the debug mode in one and not in the other (so there is a difference between the compressed and uncompressed JS files)?

Regards,
Adei

acarpine
Champ in-the-making
Champ in-the-making
Thanks for the reply Adei.
I'm using the same Alfresco server/installation and the diffrent result come after few seconds.

I believe I have just found the cause. Some weeks ago I customized site-index.jsp to point directly to the "main site" of the user.
This redirect use the lowercase site name and I think the search feature use the site name retrieved from the url instead of the real site name…

I'll keep you updated

acarpine
Champ in-the-making
Champ in-the-making
Fixed changing the wrong redirect in site-index.jsp
thanks anyway adei
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.