AnsweredAssumed Answered

Alfresco lucene search cannot find folder

Question asked by streetturtle on Nov 21, 2016
Latest reply on Nov 21, 2016 by jpotts

I have a folder in document library of a site. I want to find all content of that folder. Running following lucene/fts-alfresco query in Node Browser returns No items found:

PATH:"/app:company_home/st:sites/cm:mysite/cm:documentLibrary/cm:MyFolder/*"

Which is wrong, as I have documents in that folder and running same query for different folder returns proper result. Another strange thing is that I cannot get this folder: following query also returns No items found:

PATH:"/app:company_home/st:sites/cm:mysite/cm:documentLibrary/cm:MyFolder"

Also if I get content of document library then MyFolder is skipped in the results and subfolder is returned:

PATH:"/app:company_home/st:sites/cm:mysite/cm:documentLibrary/*"  

Name          | Parent
--------------|---------------------
cm:MyFolder2  | /app:company_home/st:sites/cm:mysite/cm:documentLibrary
cm:MySubfolder| /app:company_home/st:sites/cm:mysite/cm:documentLibrary/cm:MyFolder

I have checked the aspects and properties of MyFolder and they are the same as MyFolder2. I do not have any custom behaviours/rules/etc.

How can I make first lucene query work and return content of MyFolder?

Outcomes