cancel
Showing results for 
Search instead for 
Did you mean: 

Display the directory structure

bensonfungjava
Champ in-the-making
Champ in-the-making
Hi,

The structure of the space in Alfresco is

/company_home/Patient Record/[folder name]/[sub-folder name].

If I would like to display a list of all folder structure names via Web Services API, can anyone teach me what will the lucene  query string look like?

what I am using is :

PATH:"/app:company_home/cmSmiley Tongueatient_x0020_Record/*/*" OR TYPE:"cm:folder" 

Is it correct?


Please advise


Thanks
Benson
1 REPLY 1

emperor333
Champ in-the-making
Champ in-the-making
You can use PATH:/<directory>//* to get all the nodes at any depth below.

So in your case try this - PATH:"/app:company_home/cmSmiley Tongueatient_x0020_Record//*"  and since it is folders or containers you wants to extract, use "AND" combination.

Regards,