MarkLogic 12 EA 1 Product Documentation
spell:add-word

spell:add-word(
   $uri as xs:string,
   $word as xs:string
) as empty-sequence()

Summary

Add the word $word to the dictionary at $uri.

Parameters
uri The URI of the dictionary.
word The word to add.

Example

  xquery version "1.0-ml";
  import module namespace spell = "http://marklogic.com/xdmp/spell" 
		  at "/MarkLogic/spell.xqy";

  spell:add-word("/mySpell/spell.xml", "WebDAV")

  => adds the word "WebDAV" to the specified dictionary
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy