AnsweredAssumed Answered

How to issue a selectnodes query via a Web Script?

Question asked by armedia on Oct 8, 2010
Using the Node Browser via the Admin Console, I can issue the following query using the search language "selectnodes":

/sys:system/sys:authorities/*[descendant::cm:admin]

This search returns a list of authorityContainers (i.e. groups) that contain the user "admin".

Via a Web Script, I cannot run this query, since "jcr-xpath" is not a supported language (even though the Search API Wiki page claims it is supported: http://wiki.alfresco.com/wiki/3.3_JavaScript_API#Search_API).

How can I run a query that works with "selectnodes" in the node browser via a Web Script?

Same question was raised (but not resolved) in this forums entry: http://forums.alfresco.com/en/viewtopic.php?f=36&t=24545

Thanks in advance.

Balaji

Outcomes