Exclude path in lucene query
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2010 09:27 AM
Is there a way to exclude a folder in a store from a lucene search? I have had no luck using this:
+TYPE:"{http://www.mycompany.com/model/1.0}produktion" -PATH:"/app:company_home/cm:Arkivet/*"
I am still getting results residing in (or in a subfolder to) the path specified.
Thanks
/Erik
+TYPE:"{http://www.mycompany.com/model/1.0}produktion" -PATH:"/app:company_home/cm:Arkivet/*"
I am still getting results residing in (or in a subfolder to) the path specified.
Thanks
/Erik
Labels:
- Labels:
-
Archive
4 REPLIES 4
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2010 09:38 AM
Found it 
From the wiki:
To find all nodes at any depth below "/sys:user":
My working query:

From the wiki:
To find all nodes at any depth below "/sys:user":
PATH:"/sys:user//*"
My working query:
+TYPE:"{http://www.mycompany.com/model/1.0}produktion" -PATH:"/app:company_home/cm:Arkivet//*"

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2011 11:30 AM
Hi,
Can you explain where you place the exclusion to obtain this result
I would like to exclude spaces from lucene searches too, but i don't know how to do, and it seem that you find out how to make that …
Many thanks
Fred.
Can you explain where you place the exclusion to obtain this result
I would like to exclude spaces from lucene searches too, but i don't know how to do, and it seem that you find out how to make that …
Many thanks
Fred.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2011 07:09 AM
Well, the query above works in my environment. I'll guess you just have to convert it to match your types/paths.
If you have a query that don't work as expected, please post it here and I'll have a look.
Regards
/Erik
If you have a query that don't work as expected, please post it here and I'll have a look.
Regards
/Erik

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2014 11:13 AM
Thanks Erik
Your query saved me a lot of time from searching
Your query saved me a lot of time from searching
