This method executes a search using a Lucene-based indexed query. The support for XPath is restricted but optimized. Being index-based, this method can offer better performance than Node Service based methods such as selectNodes(), for searches such as unconstrained full-text searches across large numbers of nodes.
Comparison between searching with the Node Service and using index-based searching, plus further information on supported syntax can be found in the developer Wiki.
- The XPath search string
Returns an array of ScriptNode objects that were found by the repository XPath search.
var query = "//"; var nodes = search.xpathSearch(query);
This method performs an XPath search in a given store.
- The given store
- The XPath string
Returns an array of ScriptNode objects that were found by the repository XPath search in the given store.
var query = "//"; var store = "archive://SpacesStore"; var nodes = search.xpathSearch(store, query);