Search code examples
marklogicmarklogic-8

Backend Query in marklogic in java API in Marklogic


I want to know which query is being run in the backend when we use the Marklogic java api for search keyword or criteria etc.

i could not locate the way to see the query. i tried the enabling the log level to debug but didn't help.


Solution

  • I'd start with looking at the AccessLogs, that should reveal which MarkLogic REST api calls are being made by the MarkLogic Java Client API library. That is well documented, so perhaps sufficient for your needs. I'm not sure it is very useful to drill down even further to look at the actual XQuery code. It would probably require you to poke around in MarkLogic Modules folder to figure out anyhow.

    HTH!