Controlling Text Tokenization and Escaping
Note: There is a different mechanism for tokenizing text and tag fields, this document refers only to text fields. For tag fields please refer to the documentation.
Escaping separators in both queries and documents is done by prepending a backslash to any separator. e.g. the text
hello\-world hello-world
will be tokenized as . NOTE that in most languages you will need an extra backslash when formatting the document or query, to signify an actual backslash, so the actual text in redis-cli for example, will be entered ashello\\-world
.Repeating spaces or punctuation marks are stripped.