Hi Shannon,

I believe that options are the 3rd arg on cts:similar-query. The 2nd, $weight 
as xs:double is optional.
See inline below.

Thanks! -m

On Oct 24, 2010, at 10:42 PM, Shannon wrote:

> 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

_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to