admin.databaseTokenizerOverride( character as String, class as String ) as element(db.tokenizerOverride)
This function constructs a custom tokenizer override. For details, see Custom Tokenization in the Search Developer's Guide.
const admin = require('/MarkLogic/admin.xqy'); admin.databaseTokenizerOverride("-","word") //returns the new override for the character '-'
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.