Sort on performanceScore by descending order and limiting by the number of top offers
Given the input parameters are
|
name |
value |
|---|---|
|
filterBy |
categoryId:4000 |
|
fieldsAlias |
none |
|
additionalFields |
performanceScore |
|
topOffers |
3 |
-
And the X-KK-Token-Id header is defined with value tokenId5678
-
When the client perform a GET on /api/public/search/offers with the input parameters
-
Then I get a response with status 200
-
And Search is called for country fr with arguments
|
name |
value |
|---|---|
|
fq |
categoryids:(4000) |
|
sort |
performancescore+desc |
|
start |
0 |
|
rows |
3 |
Sort by performanceScore - DESC default
Given the input parameters are
|
name |
value |
|---|---|
|
filterBy |
categoryId:4000 |
|
sortBy |
performanceScore |
-
And the X-KK-Token-Id header is defined with value tokenId5678
-
When the client perform a GET on /api/public/search/offers with the input parameters
-
Then I get a response with status 200
-
And Search is called for country fr with arguments
|
name |
value |
|---|---|
|
fq |
categoryids:(4000) |
|
sort |
performancescore+desc |
|
start |
0 |
|
rows |
20 |
Sort by performanceScore - DESC explicit
Given the input parameters are
|
name |
value |
|---|---|
|
filterBy |
categoryId:4000 |
|
sortBy |
performanceScore |
|
sortDirection |
desc |
-
And the X-KK-Token-Id header is defined with value tokenId5678
-
When the client perform a GET on /api/public/search/offers with the input parameters
-
Then I get a response with status 200
-
And Search is called for country fr with arguments
|
name |
value |
|---|---|
|
fq |
categoryids:(4000) |
|
sort |
performancescore+desc |
|
start |
0 |
|
rows |
20 |