Understanding Typesense Language Search and Locale
TLDR Juri inquired about language search in Typesense, and Kishore Nallan clarified it requires a locale to index certain languages. Discussion also included how to specify these locales and that multiple languages can be searched without decreasing performance.
7
2
2
1
1
1
Feb 24, 2022 (20 months ago)
Juri
05:18 AMif I specify a custom field like “language_tag” and filter by e.g “language_tag”=“DE”, will that decrease the performance drastically? or is that fine?
thanks a lot!!!
Kishore Nallan
05:38 AM1
1
Juri
08:42 AMKishore Nallan
08:48 AMUse a recent RC build like
typesense/typesense:0.23.0.rc30
-- for other languages, that locale
might not add much value, but I haven't specifically yet.Support Cyrillic locales are:
locale == "el" ||
locale == "ru" || locale == "sr" || locale == "uk" || locale == "be";
Juri
09:05 AM'filter_by' : 'num_employees:>100'
'filter_by' : 'food_name:vegetable'
so it is basically just an own field:
'filter_by' : 'locale:russian_language'
[dunno why the color is orange now]
so the locals are not specified by some ISO, i can call them how I want, right?
Kishore Nallan
09:05 AM1
Kishore Nallan
09:06 AMlocale
property to tell Typesense which language each field belongs to.1
Juri
09:07 AMso instead of calling it ‘locale’ i could also call it ‘name_of_language’, correct?
Kishore Nallan
09:09 AM1
1
Kishore Nallan
09:10 AM1
1
Juri
09:10 AMKishore Nallan
09:11 AM1
1
Juri
09:11 AMKishore Nallan
09:12 AM1
1
1
1
Mar 03, 2022 (20 months ago)
Juri
09:31 AMMar 07, 2022 (20 months ago)
Kishore Nallan
02:09 AMTypesense
Indexed 2776 threads (79% resolved)
Similar Threads
Resolving Multilingual Search Function in Typesense Software
Bill is having difficulty with multilingual search functionality in Typesense software. Developer Kishore Nallan suggested setting a language locale and provided a demo build. The build solution had some issues, and after multiple rounds of software updates and troubleshooting, the problem still persists.
Utilizing Vector Search and Word Embeddings for Comprehensive Search in Typesense
Bill sought clarification on using vector search with multiple word embeddings in Typesense and using them instead of OpenAI's embedding. Kishore Nallan and Jason informed him that their development version 0.25 supports open source embedding models. They also resolved Bill's concerns regarding search performance, language support, and limitations in the search parameters.
Announcement: General Availability of Typesense v0.25.0
Jason announces release of Typesense v0.25.0, listing new features. Users express excitement and ask pertinent questions. Gorkem, Manuel, and Daniel commend the team for the new functionalities. Manish and Tugay share their positive experiences with Typesense. Jason and Kishore Nallan answer questions and thank users for their feedback.
Querying with Typesense-Js and Handling Null Values
michtio was querying using typesense-js and receiving fewer results than expected. Kishore Nallan suggested using different query parameters. Further discussion led to the handling of 'null' values and filtering syntax in the search queries. The thread ended with Jason offering migration support from Algolia to Typesense.
Moving from Algolia to Typesense: Questions and Answers
Juan sought advice from Kishore Nallan about moving from Algolia to Typesense, handling MultiSearch, setting parameters, checking imported documents, and a specific syntax query.