As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
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?
Can you please specify which Alfresco version and indexing subsystem you are using? How large is your index? Would it be possible to attempt a full reindex to see if it was just a hiccup? If you are using SOLR, have you checked the SOLR administration page for indexing errors and / or performed a REPORT action?
Cross-posted here: Alfresco lucene search cannot find folder - Stack Overflow