#community-help

Multi-Language Search Attribute in Typesense

TLDR Tugay is considering multi-language search on their platform and consulted with Kishore Nallan regarding their issue. Kishore Nallan directed them to a related typesense issue.

Powered by Struct AI
Oct 20, 2021 (27 months ago)
Tugay
Photo of md5-e920cc88c8354329d64e9a0332a7e5e2
Tugay
08:59 AM
Also I have another question we are trying to enable multi language search for our platform but when user adds a new language we need to update all documents with new search attribute such as {"search": "Default Product Name", "search_de": "Product name in deutsch", ...}but we want to use default search attribute if there is no search_de exists in document instead, in this way we don’t need to update all documents do you have a suggestion to resolve this issue or should we have to update all documents?
09:05
Tugay
09:05 AM
or will you consider adding this feature to typesense in future?
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
09:08 AM
Is it the case that you want to fallback to a generic (maybe english) field when a language specific field does not exist in a document?
09:09
Kishore Nallan
09:09 AM
Is it possible for one document to have a language specific field but another one not to have it? Tugay
Tugay
Photo of md5-e920cc88c8354329d64e9a0332a7e5e2
Tugay
09:12 AM
yes to prevent that we are automatically adding new search_de field to all documents with same default search value then user updates search_de for specific documents if he wants to
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
09:14 AM
This will require some kind of special syntax during query time, which can do something like use this field if it exists or use another default field
09:15
Kishore Nallan
09:15 AM
Tugay
Photo of md5-e920cc88c8354329d64e9a0332a7e5e2
Tugay
09:15 AM
like query_by=searche_de|search,brand right?
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
09:19 AM
Right. Can you please add your use case as a comment to the github issue above? We will have to arrive at a syntax that can cover all these cases.
Tugay
Photo of md5-e920cc88c8354329d64e9a0332a7e5e2
Tugay
09:20 AM
Of course adding it 👍

Typesense

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

Indexed 3015 threads (79% resolved)

Join Our Community

Similar Threads

Understanding Typesense Language Search and Locale

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.

14

16
22mo

Multiple Filters and JSON Requests in Typesense

Manish asked about multiple filter_by arguments, JSON input, and using multisearch. Jason offered typesense documentation links, examples, and how to use JSON formatted requests with multisearch. Ed shared a similar use case.

6

44
5mo

Troubleshooting Typesense API Analytics Query Suggestions

Md was confused about implementing Typesense's Analytics Query Suggestions and experienced issues with collections returning no hits. Assistance from Kishore Nallan eventually led to the identification that analytics had to be enabled. They also discussed tracking duplicate and empty queries, resulting in Md creating a Github issue.

3

27
3mo

Resolving Typesense Search Issues

Conversation started by Maximilian about Typesense search behavior led to Users Kishore Nallan and Mike discussing and suggesting workaround, with Kishore Nallan promising an official solution soon. No final confirmation of resolution provided.

1

14
21mo

Typesense Multilingual Document Search

Mridul needed to search across source and translated documents. Jason and Sergio suggested putting translations in the same document, using regex with specific fields for different locales, and rebuilding the collection when adding fields.

1

16
7mo