Numeric Fields Search in Typesense
TLDR Sean asked how to search numeric fields in Typesense. Kishore Nallan suggested creating a string version of the numeric field.
Powered by Struct AI
1
3
3mo
Aug 26, 2023 (3 months ago)
Sean
Sean
08:52 AMHi, just getting started with Typesense. Is there a way to search against a numeric field? In the books example, I want to type a year in the search and return books that match that year. I don’t want to create a separate filter in the UI for it.
Kishore Nallan
Kishore Nallan
08:54 AMq paramter only searches on string fields. So you will have to create another string version of year field.
Sean
Sean
08:54 AMah ok. that’s great, thanks.
1
Typesense
Lightning-fast, open source search engine for everyone | Knowledge Base powered by Struct.AI
Indexed 3015 threads (79% resolved)
Similar Threads
Typesense Usage for Numeric Field Searches
Roshan inquired about typesense support for numeric comparisons. Kishore Nallan confirmed it does and provided a reference.
4
23mo
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.
3
4mo
Typesense Support for Regex Search
Samarajya inquired if Typesense supports regex searching. Kishore Nallan clarified that it doesn't.
2
23mo