Skip to content

Instantly share code, notes, and snippets.

@ableasdale
Created September 13, 2018 21:09
Show Gist options
  • Save ableasdale/aff5f097d2f1a9ba239edb4fe23960c1 to your computer and use it in GitHub Desktop.
Save ableasdale/aff5f097d2f1a9ba239edb4fe23960c1 to your computer and use it in GitHub Desktop.
MarkLogic: Search Query Console History (no range index)
xquery version "1.0-ml";
declare namespace qc = "http://marklogic.com/appservices/qconsole";
for $i in (//qc:timestamp)
where xs:dateTime($i) ge xs:dateTime("2018-06-26T16:06:49") and xs:dateTime($i) le xs:dateTime("2018-06-26T17:06:49")
return xdmp:node-uri($i)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment