cancel
Showing results for 
Search instead for 
Did you mean: 

lucene/xpath search, find node with custom:custom_id = x?

ejholmgren
Champ in-the-making
Champ in-the-making
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/
1 REPLY 1

sbuckle
Champ in-the-making
Champ in-the-making
With JavaScript you can try something like this:

var nodes = search.luceneSearch('+PATH:"/app:company_home/cm:<your folder>/*" +@custom\\:custom_id:x');‍‍‍