Created
November 4, 2016 21:35
-
-
Save taoyou/178067f25d3f1a199689feb4e6f0c935 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xquery version "3.1"; | |
for $doc in fn:collection("books")/full-text | |
let $keys := fn:tokenize( fn:base-uri($doc), "/")[4] | |
for $key in $keys | |
return fn:collection("books")//key |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment