Skip to content

Instantly share code, notes, and snippets.

@ableasdale
Created September 23, 2016 12:56
Show Gist options
  • Save ableasdale/d2799265c068e7927e627b99041fb35e to your computer and use it in GitHub Desktop.
Save ableasdale/d2799265c068e7927e627b99041fb35e to your computer and use it in GitHub Desktop.
Get binary URIs back from the URI lexicon
xquery version "1.0-ml";
declare namespace qry = "http://marklogic.com/cts/query";
cts:uris((),(),cts:and-query(xdmp:plan(/binary())//qry:term-query/qry:key ! cts:term-query(.)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment