Skip to content

Instantly share code, notes, and snippets.

@tternquist
Created November 23, 2016 12:46
Show Gist options
  • Save tternquist/150acf149a5d0477f483af221b92e22e to your computer and use it in GitHub Desktop.
Save tternquist/150acf149a5d0477f483af221b92e22e to your computer and use it in GitHub Desktop.
Range index for document URIs
cts:element-range-query(xs:QName("xdmp:document"),"=","myUri.xml","collation=http://marklogic.com/collation/codepoint")
@grtjn
Copy link

grtjn commented Jun 30, 2017

Isn't using cts:document-query much easier? :)

xdmp:document was useful for tuples though, but nowadays one can use cts:values for that with a cts:uri-reference..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment