Skip to content

Commit 1251adb

Browse files
committed
clarify sortingStrategy index relation
1 parent cce98d1 commit 1251adb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

specs/composition/common/schemas/components/Composition.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ composition:
2525
sortingStrategy:
2626
type: object
2727
description: |
28-
A mapping of sorting labels to the indices (or replicas) that implement those sorting rules.
29-
28+
A mapping of sorting labels to the indices (or replicas) that implement those sorting rules. The sorting indices MUST be related to the associated main targeted index in the composition.
3029
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.
30+
3131
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
3232
with the sorting strategy index it is mapped to.
3333

0 commit comments

Comments
 (0)