Hello, I need to apply options such as "case-insensitive" to a search constraint using the Search API. The documentation for search:search() states that "You can use term-option elements as a child of either the term element or as a child of the constraint element."
http://developer.marklogic.com/pubs/5.0/apidocs/SearchAPI.html#term-option But when I add <term-option> as a child of <constraint> like so: <constraint name="title"> <word> <element ns="http://digital.library.ptsem.edu/ia" name="title"/> </word> <term-option>case-insensitive</term-option> <term-option>diacritic-insensitive</term-option> </constraint> and then run the <options> node through search:check-options() I'm told that <term-option> *cannot* be a child of <constraint>: Invalid node: Found search:term-option but expected (search:constraint-type|search:annotation)* at /search:options/search:constraint[1]/search:term-option[1] using schema "search.xsd" Can anyone clarify how to apply "case-insensitive", etc. to a constraint? Thanks, Greg Gregory Murray Digital Library Application Developer Princeton Theological Seminary _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
