I noticed this case where cts:element-values() does not seem to be apply a
constraining query.
Running this constraining query on test data finds one document, which
contains one cmName value:
let $cq :=
cts:and-query((
cts:collection-query('content'),
cts:element-value-query(xs:QName('cmName'), ('SQLNorthwind'))
))
But this query returns two values: Northwind, SQLNorthwind
cts:element-values(xs:QName('cmName'),'', (), $cq)
I'm guessing it's finding a match on other documents due to the value
similarity, but shouldn't the constraining query take precedence? Maybe
it's the underlying combination of 'unfiltered' and cts:word-query().
Thanks for any advice,
Gary
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general