Closed (fixed)
Project:
Search API Meilisearch
Version:
2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Sep 2023 at 09:01 UTC
Updated:
5 Oct 2023 at 15:49 UTC
Jump to comment: Most recent
Comments
Comment #3
admirlju commentedComment #4
deaom commentedI do agree for the order not being important for the searchable and filterable attributes, but for sortable it's important that they keep the order in which they are set in the search API fields, as if I'm not mistaken, the first one added (on top) is the one with more "importance" when sorting, but I could be wrong, so leaving this to needs review.
Comment #5
admirlju commentedLooking at the meilisearch documentation. The order of sorting attributes is not important when setting them up, this setting only sets what values can be used for sorting. The sorting order is done at search time, so values in the
"sort"parameter must be correctly ordered.Comment #6
deaom commentedThank you for looking into it. Did test the code and it's working as expected and I see no issue with this being sorted before comparison is made, marking it as RTBC.
Comment #8
bcizej commentedThanks, merged but needs to be applied to 2.x as well.
Comment #11
bcizej commentedMerged to 2.x as well.