Resolving Multilingual Search Function in Typesense Software
TLDR 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.
1
1
Nov 29, 2021 (26 months ago)
Bill
07:05 PMNov 30, 2021 (26 months ago)
Kishore Nallan
12:41 AMBill
07:38 PMDec 02, 2021 (25 months ago)
Kishore Nallan
11:14 AMKishore Nallan
11:34 AMel
locale like this: curl -k "" -X POST -H "Content-Type: application/json" \
-H "X-TYPESENSE-API-KEY: ${TYPESENSE_API_KEY}" -d '{
"name": "titles", "num_memory_shards": 4,
"fields": [
{"name": "title", "type": "string", "locale": "el" },
{"name": "points", "type": "int32" }
]
}'
Bill
01:58 PMKishore Nallan
02:00 PMBill
02:03 PMBill
02:04 PMKishore Nallan
02:05 PMKishore Nallan
02:06 PMBill
02:07 PMKishore Nallan
02:08 PMBill
02:10 PMKishore Nallan
02:10 PMDec 06, 2021 (25 months ago)
Bill
12:10 PMKishore Nallan
12:10 PMKishore Nallan
12:11 PMBill
12:11 PMBill
12:12 PMKishore Nallan
12:12 PMBill
12:13 PMKishore Nallan
12:13 PMKishore Nallan
12:14 PM/usr/bin/typesense-server
Kishore Nallan
12:14 PM/usr/bin/typesense-server
and then start typesense back up. This is what DEB also does under the hood.Bill
12:14 PMKishore Nallan
12:15 PMBill
12:15 PMKishore Nallan
12:25 PMBill
12:26 PM1
Bill
12:26 PMBill
12:27 PMKishore Nallan
12:27 PMBill
12:35 PMBill
12:36 PMKishore Nallan
12:36 PMBill
12:36 PMKishore Nallan
12:36 PMKishore Nallan
12:36 PMBill
12:36 PMBill
12:37 PMKishore Nallan
12:37 PMBill
12:37 PMKishore Nallan
12:37 PMBill
12:38 PM/health
endpoint responds with the status code 200
before updating the next node."Kishore Nallan
12:38 PMBill
12:41 PMKishore Nallan
12:41 PMBill
12:46 PMlocale
value of the field search_terms
is not valid". The search_terms field is "type": "string[]"Bill
12:47 PM{
"facet": *true*,
"index": *true*,
"locale": "sr",
"name": "search_terms",
"optional": *false*,
"type": "string[]"
}
Kishore Nallan
12:47 PMKishore Nallan
12:49 PMBill
12:50 PMBill
12:52 PMBill
12:52 PM{
"state": 4,
"version": "0.21.0"
}
Bill
12:52 PMKishore Nallan
12:52 PMBill
12:52 PMKishore Nallan
12:53 PMBill
12:53 PMBill
12:55 PMKishore Nallan
12:56 PMBill
12:56 PMKishore Nallan
12:58 PMapt-get -o Dpkg::Options::="--force-confdef" \
-o Dpkg::Options::="--force-confold" \
-o Dpkg::Options::="--force-unsafe-io" \
-y install /path/to/deb
Kishore Nallan
12:58 PMBill
01:04 PMBill
01:04 PM{
"state": 4,
"version": "0.23.0.rc4"
}
Kishore Nallan
01:05 PMBill
01:05 PMKishore Nallan
01:05 PMBill
01:09 PM1
Bill
01:09 PMBill
01:14 PMBill
01:21 PMKishore Nallan
01:33 PMBill
01:35 PMKishore Nallan
01:37 PMBill
01:38 PMBill
01:38 PMBill
01:38 PMKishore Nallan
01:40 PMBill
01:41 PMKishore Nallan
02:07 PMBill
02:22 PMKishore Nallan
02:23 PMBill
02:25 PMDec 10, 2021 (25 months ago)
Kishore Nallan
04:37 AMDec 12, 2021 (25 months ago)
Bill
02:59 PMKishore Nallan
03:02 PMTypesense
Indexed 3005 threads (79% resolved)
Similar Threads
Troubleshooting Issues with DocSearch Hits and Scraper Configuration
Rubai encountered issues with search result priorities and ellipsis. Jason helped debug the issue and suggested using different versions of typesense-docsearch.js, updating initialization parameters, and running the scraper on a Linux-based environment. The issues related to hits structure and scraper configuration were resolved.
Diacritics Support in Instantsearch.js RefinementList
Jan queries about enabling special characters in instantsearch.js refinementList. Kishore Nallan admits diacritics support exists for text searches, promising to look into supporting it in query fields. After claiming a fix, Jan later reports issues post-upgrade, which Jason & Kishore Nallan promise to resolve.
Trouble with DocSearch Scraper and Pipenv Across Multiple OSs
James ran into errors when trying to build Typesense DocSearch Scraper from scratch, and believes it’s because of a bad Pipfile.lock. Jason attempted to replicate the error, and spent hours trying to isolate the issue but ultimately fixed the problem and copied his bash history for future reference. The conversation touches briefly on the subject of using a virtual machine for testing.
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.
Troubleshooting Typesense Docsearch Scraper Setup Issue
Vinicius experienced issues setting up typesense-docsearch-scraper locally. Jason identified a misconfiguration with the Typesense server after checking the .env file, and recommended using ngrok or port forwarding for development purposes. Vinicius successfully resolved the issue with port forwarding.