Reputation: 201
The following code returns an empty sequence:
let $dictionaryFileURI := "/dictionary.xml"
let $suggestOptions :=
<options xmlns="http://marklogic.com/xdmp/spell">
<distance-threshold>100</distance-threshold>
<maximum>1</maximum>
</options>
return spell:suggest-detailed($dictionaryFileURI, 'desaturated', $suggestOptions)
The dictionary contains a word entry 'desaturase', but still 'desaturase' is not returned as a spelling suggestion. Can someone explain why?
Note: I have tried with distance-threshold
as 1000, but it too didn't work.
Upvotes: 0
Views: 27