I'm afraid I can't spot what's wrong hereā¦. Thanks.
let $options :=
<options xmlns="cts:distinctive-terms">
<max-terms>5</max-terms>
</options>
return
cts:search(
collection(),
cts:similar-query(
collection()[1],
$options
)
)//a001
=>
XDMP-NONMIXEDCOMPLEXCONT: fn:data(<options
xmlns="cts:distinctive-terms"><max-terms>5</max-terms></options>) -- Node has
complex type with non-mixed complex content
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general