Skip to content
This repository was archived by the owner on Oct 5, 2020. It is now read-only.

Commit 62bc770

Browse files
committed
Making sure extsimilar works on binaries
1 parent a288825 commit 62bc770

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/templates/rest-api/ext/extsimilar.xqy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function ext:post(
4545
json:to-array(
4646
(
4747
for $doc in cts:search(collection(), cts:and-query(($collection-q,cts:similar-query(doc($uri)))))
48-
let $similar-uri := base-uri($doc)
48+
let $similar-uri := xdmp:node-uri($doc)
4949
where $similar-uri != $uri
5050
return $similar-uri
5151
)[1 to $limit]

0 commit comments

Comments
 (0)