Resolving Issues with Infix and Prefix in Query Searches
TLDR Daren struggled with searches missing values in production. Jason and Kishore Nallan offered insights and created new features to help solve the problem, which was then tested and deployed by Daren.
2
Jul 02, 2023 (3 months ago)
Daren
10:32 PMJason
10:55 PMIf you want to search in the middle of strings, it’s called an infix search and you can enable it by setting infix:true in the field definition in the collection schema, and then set infix=true as a search parameter
Daren
11:07 PMDaren
11:07 PMDaren
11:07 PMDaren
11:11 PMDaren
11:13 PMDaren
11:27 PMDaren
11:28 PMDaren
11:28 PMDaren
11:30 PMExcept when x= actual value
Jason
11:34 PMhttps://gist.github.com/jasonbosco/7c3432713216c378472f13e72246f46b
Daren
11:38 PMJul 03, 2023 (3 months ago)
Daren
12:19 AMKishore Nallan
12:22 AMDaren
12:39 AMDaren
12:42 AMKishore Nallan
12:44 AMDaren
12:44 AMJason
08:26 PMexport TYPESENSE_API_KEY=xyz
curl "" \
-H "X-TYPESENSE-API-KEY: ${TYPESENSE_API_KEY}"
curl "" \
-X POST \
-H "Content-Type: application/json" \
-H "X-TYPESENSE-API-KEY: ${TYPESENSE_API_KEY}" \
-d '{
"name": "numbers",
"fields": [
{"name": "handle", "type": "string", infix:true , index:true},
],
"default_sorting_field": ""
}'
curl "" \
-H "X-TYPESENSE-API-KEY: ${TYPESENSE_API_KEY}" \
-H "Content-Type: text/plain" \
-X POST \
-d '{"id": "1","handle": "23456789"}
{"id": "2","handle": "9172837237"}'
curl "" \
-X POST \
-H "Content-Type: application/json" \
-H "X-TYPESENSE-API-KEY: ${TYPESENSE_API_KEY}" \
-d '{
"searches": [
{
"collection": "numbers",
"q": "123456789",
"query_by": "handle"
}
]
}'
Jul 04, 2023 (3 months ago)
Kishore Nallan
01:26 AM1
Jul 05, 2023 (3 months ago)
Daren
07:58 PMJul 06, 2023 (3 months ago)
Kishore Nallan
01:33 AMDaren
02:20 AMKishore Nallan
06:20 AMDaren
05:31 PMDaren
05:39 PM0.25.0.rc43
Or something like that
Daren
10:33 PMJason
10:36 PMJason
10:36 PMDaren
10:38 PMDaren
10:40 PMJason
10:41 PM0.25.0.rct46
- this is a build that we would have to upgrade you to from our side. Would you like us to do that?Daren
10:42 PMDaren
10:42 PMJason
10:43 PMtypesense/typesense:0.25.0.rct46
1
Daren
11:01 PMJason
11:04 PMTypesense
Indexed 2779 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.
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.
Typesense Feature Developments Discussed
Daniel asked about the release schedule of Typesense and the upcoming features. Kishore Nallan elaborated on the release process and confirmed the new features. They also discussed ID handling and search highlighting features. They tested one of the features successfully.
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.
Troubleshooting 400 Error When Upgrading Typesense Firestore Extension
Orion experienced a `400` error after updating the Typesense Firestore extension, causing issues with cloud functions. They traced the issue back to a data type conflict in their Typesense collection schema after updating. With help from Jason and Kishore Nallan, they resolved the issue by recreating the collection.