MarkLogic 10 Product Documentation
cdict:dictionary-delete

cdict:dictionary-delete(
   $lang as xs:string,
   [$tokenization as xs:boolean]
) as empty-sequence()

Summary

Delete a custom dictionary.

Parameters
lang The ISO language code of the dictionary to be deleted.
tokenization Whether to delete the tokenization dictionary or the stemming dictionary for the specified language. Set to true for tokenization, false for stemming. Default: false (stemming). This parameter is ignored for languages that use a single dictionary for both stemming and tokenization, such as Japanese and Chinese.

Required Privileges

This function requires the custom-dictionary-admin or the following privileges:

http://marklogic.com/xdmp/privileges/custom-dictionary-admin

If your language configure uses user-defined lexer and/or stemmer plugins, you can define additional privileges for finer control. For details, see Custom Dictionary Security Considerations in the Search Developer's Guide.

Usage Notes

If no dictionary is installed for the specified language and dictionary type combination, this operation is a no-op.

See Also

Example

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

cdict:dictionary-delete("en")
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy