Hi,

I get the error, "Invalid options node: /*:options/*:fields" when I try the 
following query:

cts:distinctive-terms(
        doc("/product-0813925045.xml"),
        <options xmlns="cts:distinctive-terms" 
xmlns:db="http://marklogic.com/xdmp/database";>
                <db:fields>true</db:fields>
        </options>
)

The API reference doesn't provide an example…. This is a somewhat general 
problem I tend to run into when configuring options nodes, such as for 
search:search--more documentation in this area would be great!

I've tried several variations, such as <db:fields><db:field name="like-titles" 
collation="http://marklogic.com/collation/en/S1/CU/MO"; /></db:fields>

Probably I'm using it incorrectly. Can I specify the field I want to use? That 
is what I'm aiming for. Or should I use an XPath union to narrow the path from 
which terms are extracted?

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

Reply via email to