Query Order Impact on Number of Results
TLDR Maciej noticed a change in results when swapping query order. Kishore Nallan explained typesense drops tokens until results are found and achieving a "give me documents having any tokens" behavior isn't possible.
May 08, 2023 (7 months ago)
Maciej
11:43 AMq=cycling running enduro cyclocross road&query_by=categories
. In addition I am sending prefix=false
. Categories is an array of strings. It would make sense to me that order within query does not matter but if I swap cycling
with running
I will get different number of results. What am I missing here?Kishore Nallan
11:45 AMMaciej
11:47 AMKishore Nallan
11:48 AMMaciej
11:51 AMgive me documents having any of the tokens
behaviour?Kishore Nallan
12:39 PMTypesense
Indexed 3015 threads (79% resolved)
Similar Threads
Issue with Query Expectations on Typesense Search
Sean was having an issue with their search query on Typesense. Kishore Nallan suggested adjusting the 'drop_tokens_threshold' parameter. After making the adjustment, Sean found an issue with the order of the results, which was resolved by updating Typesense version.
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.
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.