#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

4
1w
Solved
Join the chat
Sep 18, 2023 (1 week ago)
Jayesh
Photo of md5-001a6b8b05601dc8ac56c5f364768cc1
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-001a6b8b05601dc8ac56c5f364768cc1
Jayesh
02:24 PM
got i'll try this
02:27
Jayesh
02:27 PM
it works Thanks

1