#community-help

Understanding Locales Supported by Typesense

TLDR Carl-Gerhard asked about locales supported by Typesense. Kishore Nallan confirmed support for some locales and clarified they don't handle singular/plural differences.

Powered by Struct AI

1

Nov 11, 2022 (13 months ago)
Carl-Gerhard
Photo of md5-4000d03c20271e9897f2283858cf9d82
Carl-Gerhard
11:14 AM
Hey,

I have been trying to figure out what locales Typesense support. Can’t find anything documented about different locales.

Only thing I can find is when creating a new collection each field have a "locale": "" . Tried using this with the JS client but getting typescript error that locale does not exist on CollectionFieldSchema .
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
11:15 AM
👋 We have been working with users of specific locales to add support for some of them.

There's decent support for Korean, Thai and Cyrillic. What locale are you looking for?
11:16
Kishore Nallan
11:16 AM
Support for Mandarin and Japanese also exist but we have not had as much feedback for those yet.
Carl-Gerhard
Photo of md5-4000d03c20271e9897f2283858cf9d82
Carl-Gerhard
11:19 AM
Swedish
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
11:20 AM
For European languages we do basic normalization (e.g. handling accented characters etc.) -- do you face any specific issues when you index and search on Swedish without specifying any field locale?
Carl-Gerhard
Photo of md5-4000d03c20271e9897f2283858cf9d82
Carl-Gerhard
11:26 AM
I tried the typo feature and feels like it does not give me great results back.

And search for a pluralized word when it’s indexed as singular
11:26
Carl-Gerhard
11:26 AM
But basic searches works fine
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
11:27 AM
We don't explicitly handle singular/plural for any locale. Unless the singular/plural falls into the ambit of typo correction, like often in English (e.g. trailing "s")
Carl-Gerhard
Photo of md5-4000d03c20271e9897f2283858cf9d82
Carl-Gerhard
11:34 AM
Okej, well thanks for the quick replies! Will play around with it

1

Typesense

Lightning-fast, open source search engine for everyone | Knowledge Base powered by Struct.AI

Indexed 3015 threads (79% resolved)

Join Our Community