Default Sorting Fields in Strings
TLDR Sruli inquired if a string could be a default sorting field. Jason clarified that only numeric fields are allowed, but a sort_by=string_field:asc can be sent with every request.
Powered by Struct AI
3
9mo
Solved
Dec 27, 2022 (9 months ago)
Sruli
Sruli
10:52 PMCan a string be a Default sorting field?
Dec 28, 2022 (9 months ago)
Jason
Jason
04:09 PMNo, only numeric fields are allowed in default sorting field. But you can still send a sort_by=string_field:asc with every request
Jan 03, 2023 (9 months ago)
Sruli
Sruli
09:09 PMThanks!
Typesense
Lightning-fast, open source search engine for everyone | Knowledge Base powered by Struct.AI
Indexed 2779 threads (79% resolved)
Similar Threads
Sorting Issue with Typesense 0.23.0 and 'title' Field
Stefanie struggles to sort ascendingly with the 'title' in Typesense 0.23.0, where Kishore Nallan replies with questions and insight, though the problem isn't solved.
3
16mo
Sorting by String in Typesense
Ahmad asked for help on sorting strings, and Jason guided how to do it in Typesense with a link to a recent RC build.
2
22mo
Solved
Queryable Int32 Field for Sorting and Query By
JP wants to make an `int32` field queryable and sortable. Jason suggests creating integer and string versions of the field, but acknowledges the need for integer fields in query_by.
3
7mo