#community-help

Equalizing Search Results for Words with Similar Stemming

TLDR Jayesh asked how to balance search results for words like "syringe" and "syringes". Jason suggested using Typesense's typo_tokens_threshold. Jayesh confirmed the suggestion worked.

Powered by Struct AI

1

Sep 18, 2023 (2 months ago)
Jayesh
Photo of md5-4a36c3bc25964c64330a5747ba443346
Jayesh
02:01 PM
hi i want to ask that is there any way where we and equalise results for word and word with s for example "syringe" and "syringes"
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
02:22 PM
Typesense will always prioritize exact matches higher.

So if users search for "syringe" those exact matches will always show up higher than "syringes".

If a user searches for "syringes", if you set typo_tokens_threshold=10000, then you should see more matches for "syringe", if there are less than 10000 results with "syringes". But these typo corrected results, will still show up below the exact matches for "syringes"
Jayesh
Photo of md5-4a36c3bc25964c64330a5747ba443346
Jayesh
02:24 PM
got i'll try this
02:27
Jayesh
02:27 PM
it works Thanks

1