Resolving Sort Error in Typesense Server Application
TLDR Max reported an error with group sort in Typesense Server, which Jason resolved by correcting the parameter used, leading to functioning sorting.
Powered by Struct AI
1
1
6
1mo
Solved
Nov 01, 2023 (1 month ago)
Max
Max
07:11 PM👋 We’re getting this error when trying to sort by group counts (works fine with default sort). Is there something we’re missing? Thanks 🙂
{
"query": "query",
"query_by": "description",
"group_by": "author"
"sort_by": "_group_count:desc"
}
> (404) Could not find a field named `_group_count` in the schema for sorting.
Jason
Jason
07:11 PMCould you make sure you're running Typesense Server 0.25.1 or above?
Max
Max
07:15 PMyep, we’re on the latest 0.25.2.rc1 version
Jason
Jason
07:30 PMThe parameter is actually called
_group_found:desc
. Will fix the docs shortly1
Max
Max
07:34 PMAwesome, it works now. Thanks! :)
Jason
Jason
07:34 PMAwesome, thank you for helping catch that!
1
Typesense
Lightning-fast, open source search engine for everyone | Knowledge Base powered by Struct.AI
Indexed 3005 threads (79% resolved)
Similar Threads
Resolve 'malformed sort_by field' Error in Typesense
Abdullah struggled with a 'malformed sort_by field' error in Typesense, which Kishore Nallan resolved by advising an upgrade to '0.23.0.rc20' build, offering associated download sources.
15
24mo
Solved
Sorting Issues with Typesense's `group_by` Param
Vamshi was puzzled by inconsistent results order in Typesense. Kishore Nallan clarified how `group_by` sorting works, assisting Vamshi in resolving the problem.
5
3mo
Solved
Sorting by Sums of Fields in Typesense
John asks about support for sorting by sums of fields, and Kishore Nallan directs them to an open feature request on GitHub.
3
7mo
Solved