xquery - Specify port number and content database for a query in marklogic -


i writing few test cases in test server 8062, data resides on port number 8060 specific content database.without changing content db of test server using admin console, possible specify port , content db hit specific query? not want load contents of content db test server db. e.g. like:

 let $current := (fn:count(cts:uri-match("*.xml*")),(),     <options xmlns="xdmp:eval">     <database>{xdmp:database("prj-content")}</database>     </options>)  

in marklogic data doesn't "reside" on port. rather app server that's connected database listens on port http or xdbc requests. can have many app servers fronting same database. testing , administration 2 use cases more 1 app server configured database.

your test server (port 8062) should specify prj-content database. current database configuration? why different prj-content. if that, won't have specify database @ runtime.

if need specify database @ runtime can use xdmp:eval, xdmp:invoke, or xdmp:invoke-function.


Comments