Below query gives me wrong result count:
<options xmlns="http://marklogic.com/appservices/search">
<constraint name="Keyword">
<range type="xs:string"
facet="true"
collation="http://marklogic.com/collation/">
<element ns="" name="keyword"/>
<facet-option>frequency-order</facet-option>
<facet-option>descending</facet-option>
<facet-option>limit=1</facet-option>
</range>
</constraint>
</options>;
let $query-text := "pankaj!"
let $response := search:search($query-text, $query-options1)
return $response
there is no word "pankaj!" in my ML DB, but it gives 33 response. 33 is true for word "pankaj" but not for "pankaj!". "!" is getting removed from the query text.
<search:response snippet-format="snippet"
total="33"
start="1"
page-length="10"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns=""
xmlns:search="http://marklogic.com/appservices/search">
Please let me know how to set term-option to get correct result.
Thanks.