Skip to content

Tokenizes a string into an array of terms using the specified analyzer. Useful for full-text search scenarios.

func.tokenize('The quick brown fox', 'english')
func.tokenize('The quick brown fox', 'english')
┌─────────────────────────┐
["quick","brown","fox"]
└─────────────────────────┘
TOKENIZE(<str>[, <analyzer>])
SELECT TOKENIZE('The quick brown fox', 'english');
┌─────────────────────────┐
│ ["quick","brown","fox"] │
└─────────────────────────┘