cancel
Showing results for 
Search instead for 
Did you mean: 

search.findNode method

gaurav
Champ in-the-making
Champ in-the-making
Hi Everyone,

I am trying to use the var result = search.findNode("avm://myWebapp/-1;www;avm_webapps;ROOT;test;Test2"); in the java script but I get the result as null. The argument to the findNode(…) method is the string that I get doing myNode.nodeRef property . I am not really sure of the reason. I would highly appreciate if some one can help.

Thanks,
Gaurav
1 REPLY 1

sbuckle
Champ in-the-making
Champ in-the-making
I believe that by default search.findNode(…) searches against the SpacesStore not the AVM. There is a method in HEAD that allows you to execute a Lucene search against a particular store: http://wiki.alfresco.com/wiki/JavaScript_API_3.0#Search_API