Skip to content

Instantly share code, notes, and snippets.

@tternquist
Created December 16, 2015 19:17
Show Gist options
  • Save tternquist/57db582ab721d94778bf to your computer and use it in GitHub Desktop.
Save tternquist/57db582ab721d94778bf to your computer and use it in GitHub Desktop.
Get documents that were in system as of time
let $time := xs:dateTime("2015-12-16T17:30:00Z")
let $period := cts:period($time)
let $query := cts:period-range-query("system","ALN_CONTAINS", $period)
return cts:search(/,$query)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment