Max token length limits the number of characters in a token. The standard tokenizer defaults to 255 characters; longer tokens are split when a smaller limit is configured. section 7.7.1
Split a long token
Configure a custom standard tokenizer with "max_token_length": 2. Analyzed text such as "Bond" becomes "Bo" and "nd", preserving the requested two-character limit. section 7.7.1
POST weird_combos/_doc
{
"text": "Hot cup of ☕ and a 🍿 is a Weird Combo :(!!"
}
Inspect the complete index settings for a custom analyzer and standard tokenizer with a two-character maximum. section 7.7.1
["hot", "cup", "of", "☕", "and", "a", """🍿""", "is", "a", "weird", "combo"]
Run the analyzer against "Bond" and verify that the configured token-size limit produces two tokens. section 7.7.1
