You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A mapping of sorting labels to the indices (or replicas) that implement those sorting rules.
18
+
$ref: '#/sortingStrategy'
21
19
22
-
Each key is the label your frontend sends at runtime (for example, "Price (asc)"), and each value is the name of the index that should be queried when that label is selected.
23
-
When a request includes a "sortBy" parameter, the platform looks up the corresponding index in this mapping and uses it to execute the query. The main injection targeted index is replaced
24
-
with the sorting strategy index it is mapped to.
25
-
26
-
Up to 20 sorting strategies can be defined.
27
-
maxItems: 20
28
-
additionalProperties:
29
-
type: string
30
-
example:
31
-
'Price (asc)': 'products-low-to-high'
32
-
'Price (desc)': 'products-high-to-low'
33
-
34
20
required:
35
21
- objectID
36
22
- behavior
37
23
- name
24
+
25
+
sortingStrategy:
26
+
type: object
27
+
description: |
28
+
A mapping of sorting labels to the indices (or replicas) that implement those sorting rules.
29
+
30
+
Each key is the label your frontend sends at runtime (for example, "Price (asc)"), and each value is the name of the index that should be queried when that label is selected.
31
+
When a request includes a "sortBy" parameter, the platform looks up the corresponding index in this mapping and uses it to execute the query. The main injection targeted index is replaced
0 commit comments