Hi all, I am using search API with a constraint for the element "Name".
xquery version "1.0-ml"; import module namespace search = "http://marklogic.com/appservices/search" at "/MarkLogic/appservices/search/search.xqy"; let $g:= <options xmlns="http://marklogic.com/appservices/search"> <constraint name="Name"> <range type="xs:string" facet="false" > <element name="Name"/> </range> </constraint> <return-query>true</return-query> </options> return search:search("Name:(Andrew)",$g,1,50) This user input can be case-insensitive. Is there a option to include case-insensitive search to the element "Name" using range constraint. I could see the query that it is framing <search:query> <cts:element-range-query qtextpre="Name:" qtextref="cts:annotation" operator="="> <cts:element>_1:Name</cts:element> <cts:annotation qtextref="following-sibling::cts:value"/> <cts:value xsi:type="xs:string">Andrew</cts:value> </cts:element-range-query> </search:query> I cannot find any case-insensitive search options on cts:element-range query. Am i missing something in this search. Regards, Ambika
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
