Typesense Infix Search for Partial Word Matching

TLDR Eric needed help with Typesense infix search for partial word matching. Kishore Nallan advised to enable it through infix: true in the collection schema.

Powered by Struct AI
Join the chat
Mar 22, 2023 (6 months ago)
Photo of md5-6dad5700ca43d29bf9c1528b9cba487f
08:12 AM
Hi guys
I am a newbie on Typesense and I need help to search for a part of a word
in one of my collection I have a field that contains several times the word product
if I search by prod* the results are well found
if I search by rodu no result
how to search as a SQL LIKE %ordu% query
Thanks for your help
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
08:52 AM
By default Typesense only does prefix search. For infix search you've to enable it via infix: true in the collection schema.