spell:load( $path as xs:string, $uri as xs:string ) as empty-sequence()
Add the words from the file specified in $path to the dictionary at $uri.
If a document exists with the specified URI, it is replaced with this one.
Note that words that are 64 characters or greater will never be returned
as suggestions from spell:suggest
or
spell:suggest-detailed
.
Parameters | |
---|---|
path | The path to a file containing the dictionary. |
uri | The URI of the dictionary. |
spell:load
function are automatically
added to the following collections:
xquery version "1.0-ml"; import module namespace spell = "http://marklogic.com/xdmp/spell" at "/MarkLogic/spell.xqy"; spell:load("c:\dictionaries\spell.xml", "/mySpell/spell.xml")
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.