#community-help

Query on Typesense Indexing Special Characters

TLDR JinW inquired about Typesense indexing .(period) and synonyms stripping out the period, Jason clarified that from version 0.22, Typesense can index special characters and suggested using 0.22.0.rcs39.

Powered by Struct AI
Nov 26, 2021 (26 months ago)
JinW
Photo of md5-be53735a2b0297bb542711c1d2ecea45
JinW
09:35 PM
Does Typesense index .(period)? And it seems like synonyms strip out the .
Nov 27, 2021 (26 months ago)
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
12:49 AM
By default it doesn't. In v0.22 we added the ability to index special characters: https://github.com/typesense/typesense/issues/122#issuecomment-907468036
12:49
Jason
12:49 AM
You want to use 0.22.0.rcs39
JinW
Photo of md5-be53735a2b0297bb542711c1d2ecea45
JinW
02:13 AM
Thanks, Let me try the newer version. I’m using 0.22.0rcs24 and it index the “.” token by default.

Current Settings:
SymbolsToIndex: &[]string{"#", "+", "%"},
TokenSeparators: &[]string{":", "-"},