cancel
Showing results for 
Search instead for 
Did you mean: 

Search in subfolders

cheng81
Champ in-the-making
Champ in-the-making
Hi all, I'm trying to search documents in alfresco starting from a specified folder, but if i try to set the "+PATH …" part in the query, then only the documents stored in that path will be found, not the ones in the subfolders.
I'm sure that it's something quite obvious, but i hadn't had luck with this..

thanks for replies,

Francesco Zanitti
1 REPLY 1

fiki
Champ on-the-rise
Champ on-the-rise
I found something here: http://wiki.alfresco.com/wiki/Search#Path_Queries

To find all nodes at any depth below "/sys:user"

PATH:"/sys:user//*"

pay attention on the double slash (if you put only one, then you get only the nodes directly below the sys:user folder)

if you only want to get documents back (not folders), then you must add another condition, for example:

PATH:"/app:company_home//*" AND TYPE:"cm:content"

returns all content located anywhere under the company_home node.