Loading TOC...

cdict functions

The table below lists all the cdict built-in functions (in this namespace: http://marklogic.com/xdmp/custom-dictionary).

The custom dictionary functions are designed to help you manage dictionaries that customize the stemming and tokenization in MarkLogic Server. The custom dictionary function module is installed as the following file:

  • install_dir/Modules/MarkLogic/custom-dictionary.xqy

where install_dir is the directory in which MarkLogic Server is installed.

To use the custom dictionary library in your own code, use a requires statement similar to the following:

const cdict = require('/MarkLogic/custom-dictionary.xqy');

For more details, see Custom Dictionaries for Tokenizing and Stemming in the Search Developer's Guide

4 functions
Function name Description
cdict.dictionaryDelete Delete a custom dictionary.
cdict.dictionaryRead Retrieve the custom dictionary for a language.
cdict.dictionaryWrite Insert or update a custom dictionary for language.
cdict.getLanguages Return the ISO language codes for all licensed languages.