Skip to content

Commit 40795d0

Browse files
committed
make searchParams optional for searchSingleIndex
1 parent a19f2d9 commit 40795d0

File tree

3 files changed

+4
-11
lines changed

3 files changed

+4
-11
lines changed

specs/search/common/schemas/SearchResponse.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ baseSearchResponse:
4848
description: If a search encounters an index that is being A/B tested, abTestID reports the ongoing A/B test ID.
4949
abTestVariantID:
5050
type: integer
51-
description: If a search encounters an index that is being A/B tested, abTestVariantID reports the variant ID of the index used.
51+
description: If a search encounters an index that is being A/B tested, abTestVariantID reports the variant ID of the index used (starting at 1).
5252
aroundLatLng:
5353
type: string
5454
description: The computed geo location.

specs/search/paths/search/searchSingleIndex.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ post:
99
parameters:
1010
- $ref: '../../../common/parameters.yml#/IndexName'
1111
requestBody:
12-
required: true
1312
content:
1413
application/json:
1514
schema:

tests/CTS/methods/requests/search/searchSingleIndex.json

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,16 @@
22
{
33
"testName": "search with minimal parameters",
44
"parameters": {
5-
"indexName": "indexName",
6-
"searchParams": {
7-
"query": "myQuery"
8-
}
5+
"indexName": "indexName"
96
},
107
"request": {
118
"path": "/1/indexes/indexName/query",
12-
"method": "POST",
13-
"body": {
14-
"query": "myQuery"
15-
}
9+
"method": "POST"
1610
}
1711
},
1812
{
1913
"method": "search",
20-
"testName": "search with facetFilters",
14+
"testName": "search with searchParams",
2115
"parameters": {
2216
"indexName": "indexName",
2317
"searchParams": {

0 commit comments

Comments
 (0)