Sorting and Grouping Products According to Price
TLDR Valdrin asked how to sort and group products and always display the lowest price. Kishore Nallan clarified internal and global sorting, suggesting client side sorting as a workaround.
Jan 12, 2023 (8 months ago)
My specific case is where I’d like to group certain products and show the lowest price for each group.
So, in order to show the lowest price, I’d have to sort the results like such:
sort_by: "amount:asc",. But if the user changes the sort from
lowest -> highestto
highest -> lowestusing one of the widgets, then the value I receive back also changes, and then instead of showing the lowest price it would show the highest price. Let me know if you need any more info or clarification
Kishore Nallan10:31 AM
Kishore Nallan10:38 AM
kitems to pick per group (when group_limit is used). So even client side sorting would only sort within the group returned on a global order.
Indexed 2764 threads (79% resolved)
Sorting and Grouping Order Collections by ItemId and Price
Xing had trouble sorting and grouping order collections by item Id and lowest price. Ivan suggested using facet_by, while Kishore Nallan clarified that only desc order on highest price is possible and suggested a feature request.
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.
Sorting within Group_by with Group_limit
Morgan wants to sort within groups after grouping, Kishore Nallan offers advice and validates. Proposed solutions do not guarantee prioritizing `inStock` within groups.