MarkLogic 9 Product Documentation
cdict:dictionary-deletecdict: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")
Copyright © 2024 MarkLogic Corporation. MARKLOGIC is a
registered trademark of MarkLogic Corporation.