Lucene Search only in parent folder.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2011 05:47 AM
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
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
Labels:
- Labels:
-
Archive
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2011 10:34 AM
Hi
You can add
+PATH:"<path to folder>/*"
Will find stuff in the folder (//* ending would find all below)
For this specific case you can also use
+PARENT:"<node ref of parent>"
Andy
You can add
+PATH:"<path to folder>/*"
Will find stuff in the folder (//* ending would find all below)
For this specific case you can also use
+PARENT:"<node ref of parent>"
Andy
