Sorting Issues with Typesense's `group_by` Param
TLDR Vamshi was puzzled by inconsistent results order in Typesense. Kishore Nallan clarified how group_by
sorting works, assisting Vamshi in resolving the problem.
1
Aug 22, 2023 (3 months ago)
Vamshi
05:08 AMgroup_by
param. I am explicitly providing sort_by
to see if that helps as well. Here's an example queryq=skirt&query_by=searchText0,searchText1,searchText2&per_page=10&group_by=productID&group_limit=50&sort_by=publicationDate:desc,rankingScore:desc&filter_by=category:=[`Skirt`]
our cloud typesense cluster version is
Typesense v0.24.1
. Am I missing something? Any help is appreciated, thanks.Kishore Nallan
05:11 AMpublicationDate:desc,rankingScore:desc
so the record with the greatest publicationDate within each group will become the representative element for that group. Other elements in the group can have a lower value.Vamshi
05:13 AMKishore Nallan
05:14 AMVamshi
05:31 AM1
Typesense
Indexed 3011 threads (79% resolved)
Similar Threads
Typesense Performance with Large Datasets & Custom Sort
krok inquires about Typesense's performance on large datasets and custom sorting. Kishore Nallan explains that Typesense is optimized for this scenario using pagination and text relevance.
Resolve Facets and Sorting Issues with Typesense
Ethan needed assistance with getting all facet values and sorting results by date using Typesense. Jason provided guidance on how to use Typesense properties to accomplish these tasks, and resolved issues related to specific use-cases provided by Ethan and Rushil.
Moving from Algolia to Typesense: Questions and Answers
Juan sought advice from Kishore Nallan about moving from Algolia to Typesense, handling MultiSearch, setting parameters, checking imported documents, and a specific syntax query.