Using Typesense to Retrieve Multiple Keyword Matches
TLDR Ravi expressed confusion over Typesense not returning all results for multi-keyword queries. Kishore Nallan explained that Typesense does AND
of all keywords and drops tokens from right to left until records are found if no exact match exists. Kishore Nallan clarified that disabling the drop_tokens_threshold could alter this behavior.
1
Apr 07, 2022 (19 months ago)
Ravi
11:15 AMKishore Nallan
11:21 AMKishore Nallan
11:21 AMRavi
11:31 AMKishore Nallan
11:33 AMAND
of all keywords in the query. If it cannot find any document containing all words in the query, like in this case, instead of doing a OR, it drops tokens from the query one by one until results are found.Ravi
11:56 AMApr 08, 2022 (19 months ago)
Robert
02:50 AMKishore Nallan
02:50 AM1
Typesense
Indexed 2786 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.
Issue with Search Term Results in Typesense
Dipankar had issues with specific search terms returning unexpected results. Kishore Nallan clarified why this may occur and how to fine-tune the behavior using the 'drop_tokens_threshold' parameter in Typesense.
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.
Troubleshooting "drop_tokens_threshold" and Typo Tolerance in Typesense
Joe had issues with "drop_tokens_threshold" = 0 and typo tolerance in Typesense, after which Kishore Nallan provided solutions and clarifications on feature functionality. Their issues with the search result limit and tokens were resolved after discussion and testing.
Achieving Desired Query Results in Typesense
Timothy asked how to include documents containing any query term in Typesense. Jason explained that by adjusting the `drop_tokens_threshold`, this behaviour can be achieved.