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.
Mar 22, 2023 (6 months ago)
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 Nallan08:52 AM
Indexed 2776 threads (79% resolved)
Partial search filtering
Jason asked about partial match searching in Typesense similar to SQL's LIKE. Jason explained that Typesense has "prefix search" by default but "infix search" can be done by setting the search parameters.
Typesense Search Parameters for String Type
Sandip asked how to search specific string types in Typesense. Jason clarified how to use search parameters for this purpose.
Dave asked if Typesense's filters could do "contains" instead of whole word matching. Jason suggested using ':' for partial matches instead of ':='. They also mentioned that structured searches can only be done with filter_by.