Troubleshooting 'Contains' Match and Override Issues in Typesense
TLDR John sought assistance due to a seemingly faulty override in Typesense that failed to bring up a specific entry. Jason suggested troubleshooting steps, including trying a smaller record set and considering a server upgrade. A bug with 'contains' match appeared identified but not conclusively resolved.
1
May 11, 2022 (18 months ago)
John
10:25 PM[0] => Array
(
[excludes] => Array
(
)
[id] => bundle-COMP01_ART38169-3676
[includes] => Array
(
[0] => Array
(
[id] => COMP01
[position] => 1
)
)
[rule] => Array
(
[match] => contains
[query] => Final de tarde
)
)
COMP01 is the id of an existing entry.
But when I search for "Final de tarde" the entry COMP01 does not appear.
Did I make a mistake somewhere?
Jason
10:30 PMJason
10:30 PMJohn
10:51 PMJason
10:52 PMJohn
10:52 PMMay 12, 2022 (18 months ago)
John
09:24 PMNow, is there an easy way to query this collection (since I would not like to modify our production site for this test)?
Jason
09:30 PMJohn
09:30 PMJason
09:31 PMJohn
09:34 PMJohn
09:34 PMJohn
09:42 PMJason
09:44 PMJason
09:44 PMJason
09:46 PMJason
09:46 PMJason
09:47 PMJohn
09:49 PMJohn
09:49 PMJason
09:49 PMJason
09:50 PMJason
09:50 PMIt was related to ID searches right? The solution for that is to index the ID in a new field and use that in query_by. In the latest version we've excluded ID from being searchable, that's why ID searches didn't return any results.
John
09:51 PMJason
09:52 PMJohn
09:52 PMJohn
09:53 PMJohn
09:54 PMJason
09:54 PM... because any fixes we do will only go into the latest release, so you would have to upgrade at some point. So I'd want to see how we can configure the search to rank results based on your preference even in the new version.
So if you're able to share some examples of search terms in that email thread, we can see how to configure the search appropriately.
John
09:55 PMJason
09:55 PMJohn
09:56 PMJohn
09:56 PMJohn
09:58 PMJohn
09:59 PMJohn
10:01 PMJohn
10:04 PMJason
10:05 PM1
John
10:09 PMJason
11:31 PMTypesense
Indexed 2779 threads (79% resolved)
Similar Threads
Phrase Search Relevancy and Weights Fix
Jan reported an issue with phrase search relevancy using Typesense Instantsearch Adapter. The problem occurred when searching phrases with double quotes. The team identified the issue to be related to weights and implemented a fix, improving the search results.
Fixing Multiple Document Retrieval in Typesense
Phil needed an efficient way to retrieve multiple documents by id. Kishore Nallan proposed a solution available in a pre-release build. After some bug fixing regarding id matching by Jason and Kishore Nallan, Phil successfully tested the solution.
Difficulty Creating Override on Typesense's Curation API
Kor was facing trouble while creating an override on Typesense and not getting expected results. Jason assisted in debugging the issue, provided a fix with an upgrade, and confirmed some limitations regarding case sensitivity and bulk deletion of overrides.
Handling Kinesis Stream Event Batching with Typesense
Dui had questions about how to handle Kinesis stream events with Typesense. Kishore Nallan suggested using upsert mode for creation/update and differentiating with logical deletion. After various discussions including identifying and resolving a bug, they finalized to introduce an `emplace` action in Typesense v0.23.
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.