cancel
Showing results for 
Search instead for 
Did you mean: 

Lucene Search only in parent folder.

yogeshkumar
Champ in-the-making
Champ in-the-making
Hi All,

Please let me know how to search files only in the root folder and not in the child folder.
Ex:
ABC(Folder)
|—-doc 1(document)
|—-doc 2 (document)
|
|——CA(Folder)
|
|—–BA(Folder)

i want to search documents inside ABC Folder which shouldn't search inside CA and BA Folders.
Please let me know the best way to form the query.

Thanks and Regards,
Yogeshkumar.S
1 REPLY 1

jobispo
Champ in-the-making
Champ in-the-making
Using Lucene sintax.

For nodes only in the parent folder use:

PATH:"/app:company_home/*"

If you want only "files" really content:

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

However, you can use the nodebrowser in administration console to test your query sentences.

I hope it help You.

Jacinto Obispo.
SERVINPRO