MarkLogic Server 11.0 Product Documentation
cdict.dictionaryDeletecdict.dictionaryDelete(
lang as String,
[tokenization as Boolean]
) as null
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
const cdict = require('/MarkLogic/custom-dictionary');
cdict.dictionaryDelete('en');
Copyright © 2024 MarkLogic Corporation. MARKLOGIC is a
registered trademark of MarkLogic Corporation.