Skip to content

Commit 09465c3

Browse files
committed
comments
1 parent 8135795 commit 09465c3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

specs/composition/common/params/Composition.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,11 @@ sortBy:
118118
description: |
119119
Indicates which sorting strategy to apply for the request.
120120
The value must match one of the labels defined in the "sortingStrategy" mapping. For example, "Price (asc)", see Upsert Composition.
121-
At runtime, this label is used to look up the corresponding index or replica configured in "sortingStrategy", and the query is executed using that index’s in the main injection.
121+
At runtime, this label is used to look up the corresponding index or replica configured in "sortingStrategy", and the query is executed using that index instead of main's.
122122
123123
In addition to "sortingStrategy", this parameter is also used to apply a matching Composition Rule that contains a condition defined to trigger on "sortBy", see Composition Rules.
124124
125-
If no value is provided, no sorting strategy is applied.
125+
If no value is provided or an invalid value, no sorting strategy is applied.
126126
default: ''
127127
example:
128128
'Price (asc)'

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ sortingStrategy:
2828
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.
2929
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.
3030
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
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 targeted index is replaced
3232
with the sorting strategy index it is mapped to.
3333
3434
Up to 20 sorting strategies can be defined.

0 commit comments

Comments
 (0)