I am having search options like the following
let $options :=
<options xmlns="http://marklogic.com/appservices/search";>
    <constraint name="collection">
        <collection prefix=""/>
    </constraint>
    <constraint name="concept_name">
        <word>
            <field name="concept_name" 
collation="http://marklogic.com/collation/en/S1"/>
        </word>
    </constraint>
    <term>
        <term-option>case-insensitive</term-option>
        <term-option>punctuation-insensitive</term-option>
        <term-option>whitespace-insensitive</term-option>
        <term-option>wildcarded</term-option>
    </term>
    <return-facets>false</return-facets>
    <return-values>false</return-values>
    <return-constraints>false</return-constraints>
    <return-frequencies>false</return-frequencies>
    <return-qtext>false</return-qtext>
    <search-option>format-json</search-option>
    <search-option>score-simple</search-option>
</options>

And doing the search search:search($q, $options, $start, $page-length)

But the search is not doing case-insensitive. How do I tell in this scenario to 
specify options for a field.. I want it to be case-insensitive


I also specified "collation" both at the field level and in the app-server,  
but still of no use..

When I do cts:field-value-match("concept_name", $q ("case-insensitive", 
"diacritic-insensitive")) , I do get the correct results, so how do I specify 
using the search options like above to do the same.


Thanks,
Ravi
_______________________________________________
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to