Typesense Search Parameters for String Type
TLDR Sandip asked how to search specific string types in Typesense. Jason clarified how to use search parameters for this purpose.
1
Aug 09, 2023 (4 months ago)
Sandip
07:08 AMCould I receive search results that satisfy the following criteria for the string type:
1. Location field value ending with 'xyz'
2. Location field value containing 'xyz'"
Jason
03:51 PMprefix=true
search parameter) or contains (called infix search, infix=true
search parameter, and you need to set infix: true
in the collection’s schema for that field to enable infix search).Aug 10, 2023 (4 months ago)
Sandip
04:42 AM1
Typesense
Indexed 3015 threads (79% resolved)
Similar Threads
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.
Searching String Properties with Specific Conditions in Typesense
Serezha asked about searching string properties with strict conditions. Jason explained Typesense doesn't support endsWith search, but Kishore Nallan suggested using the `max_extra_suffix` parameter for infix searches for this purpose.
Typesense Infix Search for Partial Word Matching
Eric needed help with Typesense infix search for partial word matching. Kishore Nallan advised to enable it through infix: true in the collection schema.