cancel
Showing results for 
Search instead for 
Did you mean: 

lucene search to find a particular folder?

esource
Champ on-the-rise
Champ on-the-rise
I can find company_home with lucene:

        
StoreRef storeRef = new StoreRef(StoreRef.PROTOCOL_WORKSPACE, "SpacesStore");
        ResultSet resultSet = this.searchService.query(storeRef, SearchService.LANGUAGE_LUCENE, "PATH:\"/app:company_home\"");
        NodeRef companyHome = resultSet.getNodeRef(0);

how do I find a particular folder?  for instance a TEMP folder I have created under the company_home?
1 REPLY 1

gyro_gearless
Champ in-the-making
Champ in-the-making
Hi,

You would perhaps use "/app:company_home/cm:TEMP" as search path. BTW, Alfrescos Nodebrowser is invaluable for checking such things.

If you already have a folder reference, you may use FileFolderService#searchSimple() to locate a subfolder.

HTH
Gyro