lucene/xpath search, find node with custom:custom_id = x?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2008 12:49 PM
I am trying to figure out the correct syntax to do this and failing miserably. Can anyone lend a hand?
edit: var nodes = search.luceneSearch("@custom\\:custom_id:\"" + custom_id + "\""); seems to work.
What is the proper way to define the root where the query starts? ie. /Company Home/This Folder/
edit: var nodes = search.luceneSearch("@custom\\:custom_id:\"" + custom_id + "\""); seems to work.
What is the proper way to define the root where the query starts? ie. /Company Home/This Folder/
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2008 01:07 PM
With JavaScript you can try something like this:
var nodes = search.luceneSearch('+PATH:"/app:company_home/cm:<your folder>/*" +@custom\\:custom_id:x');
