Search Query Issues in Typesense
TLDR Gines wanted search results in Typesense for partial matches, not just exact ones. Kishore Nallan suggested solutions, but none fulfilled Gines's requirements.
1
Oct 17, 2022 (12 months ago)
Gines
08:57 AMWhat I need to do with typesense is to search for all the results that contain some of the words... For example:
I am searching for "red electric car" and typesense only returns results that contains these three words, but I would like it to return results for "red car" and "electric car" as well, is that possible?
Thank you!
Kishore Nallan
09:00 AMexhaustive_search: true
? But it will be a much more expensive query to run.Gines
09:06 AMI have these parameters:
'query_by' => "Name,Description",
'q' => "red electric car",
'per_page' => 20,
'page' => 1,
'exhaustive_search' => true,
'prioritize_exact_match' => true,
'max_candidates' => 1000
Kishore Nallan
09:08 AMOR
of the search keywords. So I am trying to see if there is a work around here.... Can you try sending drop_tokens_threshold: 10000
? This will force Typesense to keep dropping tokens from the query until 10000
results are found and will indirectly result in individual tokens being queried.Gines
09:18 AMKishore Nallan
09:19 AM1
Typesense
Indexed 2779 threads (79% resolved)
Similar Threads
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.
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.
Typesense Performance with Large Datasets & Custom Sort
krok inquires about Typesense's performance on large datasets and custom sorting. Kishore Nallan explains that Typesense is optimized for this scenario using pagination and text relevance.