Skip to content

Instantly share code, notes, and snippets.

@ableasdale
Created September 13, 2018 21:00
Show Gist options
  • Save ableasdale/98cd3065dcf3bdc9c2112bb9d485ad34 to your computer and use it in GitHub Desktop.
Save ableasdale/98cd3065dcf3bdc9c2112bb9d485ad34 to your computer and use it in GitHub Desktop.
MarkLogic: Serch Query Console History
xquery version "1.0-ml";
declare namespace qc = "http://marklogic.com/appservices/qconsole";
cts:search(doc(),
cts:and-query((
cts:element-range-query(xs:QName("qc:timestamp"), ">=", xs:dateTime("2018-06-26T16:06:49")),
cts:element-range-query(xs:QName("qc:timestamp"), "<=", xs:dateTime("2018-06-26T17:06:49"))
))
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment