Is it possible to search for a uri whose document contains a certain XPath using cts:uris()
? I thought it may be quicker than returning uris from a cts:search
. Here is what I have currently:
declare function local:xpath-search($collection) {
for $i in cts:search(//a/b, cts:and-query((cts:collection-query($collection)) ))[1] return fn:base-uri($i)
} ;
Is there a quicker way to return documents that contain a match to the XPath //a/b
, using cts:uris()
?