以下のクエリでは、間違った結果数が返されます。
<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
「パンカジ!」という言葉はありません。私のML DBでは、33の応答が得られます。33 は単語「pankaj」には当てはまりますが、「pankaj!」には当てはまりません。「!」クエリ テキストから削除されています。
<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">
term-option を設定して正しい結果を得る方法を教えてください。
ありがとう。