Hi all,

In search:search API, I would like to perform a exact search in the element
'name'. I am creating a constraint for the element name.

This is the query i am running,

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">
            <word type="xs:string" facet="false">
              <element name="name"/>
            </word>
        </constraint>
</options>

return search:search('name:"A-Rehim"',$g,1,30)

And it gets me the results for A-Rehim and also A Rehim. But i want the
results only for A-Rehim. Is the API runs this way or is it possible to make
search:search API do a exact match.

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

Reply via email to