NXQL automation cross repository

Hi, I'm using NXQL to read data from the default repository using a simple operation chain created on the fly:

CoreSession cs = CoreInstance.openCoreSession(null);
String lookbookQuery = "SELECT * from Document WHERE ecm:primaryType='Lookbook'";
OperationContext ctx = new OperationContext();
OperationChain chain = new OperationChain("fetch lookbook chain");
chain.add("Document.Query").set("language","NXQL").set("query",lookbookQuery);
AutomationService service = Framework.getService(AutomationService.class);
Object res = service.run(ctx, chain);
out.print("<pre>"+res+"</pre>");

how can I run this query across all repositories in a multiple repository environment?

0 votes

0 answers

985 views

ANSWER