Is there a way to force exact match on certain search terms?
Ex: Searching for "America" will return results for "American" due to typo tolerance.
Is there any way to do this with typesense? Or am I going to have to capture and modify the user input to add quotes before sending to typesense?
j
Jason Bosco
03/20/2025, 12:46 AM
American
is returned for
q: America
because of prefix search. If you set
prefix: false
then it won't return that
Jason Bosco
03/20/2025, 12:46 AM
Can't disable this on specific keywords on the Typesense side at the moment. So you'll have to do this on the client side
j
Jeremy Veto
03/20/2025, 3:59 PM
Gotcha thanks, ya we want prefix search for all other search types. This was just one specific scenario we wanted to catch. Client side it is!