admin:database-tokenizer-override( $character as xs:string, $class as xs:string ) as element(db:tokenizer-override)
This function constructs a custom tokenizer override. For details, see Custom Tokenization in the Search Developer's Guide.
xquery version "1.0-ml"; import module namespace admin = "http://marklogic.com/xdmp/admin" at "/MarkLogic/admin.xqy"; admin:database-tokenizer-override("-","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.