#community-help

Discussing Limits on Sort_by Fields

TLDR James asked about the limit on sort_by fields. Jason clarified that the limit is for a single search query and that you can use more fields across various searches.

Powered by Struct AI

1

3
15mo
Solved
Join the chat
Jul 18, 2022 (15 months ago)
James
Photo of md5-73a13a5101abfa5eb1a267e7a51e2459
James
01:38 PM
I can see theres a limit of 3 on sort_by . Does this include three fields using ASC/DESC?

If we wanted to exceed this, I'm assuming we would need to create a separate collection? Collection A = 1,2,3 sort_by / Collection B = 4,5,6 sort_by.
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
05:53 PM
The limit is actually a limit of 3 fields for a single search query. You can sort on any number of fields across searches
05:54
Jason
05:54 PM
So for eg, if you’re sorting by say name, price, rating, proximity and asc/desc on each of those, you can still do this on a single collection, since you’ll only be sorting on any one of those fields in a give search query

1