Issue with Search Term Results in Typesense
TLDR 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.

Aug 25, 2022 (13 months ago)
Dipankar
12:50 PM30 best safari camps and lodges for unforgettable safaris
Night Safari
Tiger safari in Ranthambore National Park
Maharajas Express
If I search for
Safari
all these appears but if I search safari holiday
only the last one appears "Maharajas Express" Why is this happening?here is my search Client setting
additionalSearchParameters: {
query_by: "title,standfirst,catTags",
}
Kishore Nallan
01:17 PMMaharajas Express
document?Dipankar
04:29 PMtitle: "Maharajas Express"
standfirst:"<p>Relive the era of the British Raj on this fabulously luxurious train – and discover the highlights of Rajasthan, from the Taj Mahal and the magnificent royal palaces, to tiger safaris at Ranthambore.</p>"
catTags:"Agra,Asia,Delhi,Golden Triangle,India,Jaipur,Rajasthan,Uttar Pradesh,Best things to do in Agra,Best things to do in Delhi,Best things to do in India,Best things to do in Jaipur,Bucket list experiences in India,Bucket list ideas,Great luxury train journeys,Travel bucket list,Unforgettable luxury train holidays"
Aug 27, 2022 (13 months ago)
Kishore Nallan
12:19 AMDipankar
06:39 AM additionalSearchParameters: {
query_by: "title,standfirst,catTags",
drop_tokens_threshold: 0,
}
Dipankar
06:40 AMdrop_tokens_threshold
to 0 but its doing nothing as far i can tellKishore Nallan
06:41 AMKishore Nallan
06:41 AM> If at least
drop_tokens_threshold
number of results are not found for a specific query, Typesense will attempt to drop tokens (words) in the query until enough results are found. Tokens that have the least individual hits are dropped first. Set drop_tokens_threshold
to 0
to disable dropping of tokens.Dipankar
06:43 AM
Typesense
Indexed 2764 threads (79% resolved)
Similar Threads
Understanding Typesense Query Fuzziness and Thresholds
Ashraful was confused about different query results when applying filters in Typesense. Jason clarified the function of `drop_tokens_threshold` and `typo_tokens_threshold` options, explaining their effect on search results and their precedence.
Troubleshooting Typesense Query for Product Search
Killian experienced unexpected search results from a typesense query for specific product sets. Kishore Nallan suggested adjusting drop_tokens_threshold and testing a newer software version.

Resolving Typesense Result Issue in Document Collection Queries
Mike was encountering errors when searching for specific query in their Typesense document collection. Jason suggested it may be due to the `drop_tokens_threshold` setting. There was a misunderstanding but after further explanation from Jason, Mike understood and decided to continue the conversation via email.

Issue with Typo Correction/Prefix Search and the Role of max_candidates
John noticed inconsistent search results based on max_candidates settings, and Kishore Nallan clarified its role for multi-word queries. They resolved that increasing max_candidates ensures the query isn't prematurely limited.


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.
