File tree Expand file tree Collapse file tree 10 files changed +71
-15
lines changed
tests/CTS/methods/requests/search Expand file tree Collapse file tree 10 files changed +71
-15
lines changed Original file line number Diff line number Diff line change @@ -321,13 +321,7 @@ indexSettingsAsSearchParams:
321
321
x-categories :
322
322
- Query strategy
323
323
distinct :
324
- type : integer
325
- minimum : 0
326
- maximum : 4
327
- description : Enables de-duplication or grouping of results.
328
- default : 0
329
- x-categories :
330
- - Advanced
324
+ $ref : ' #/distinct'
331
325
synonyms :
332
326
type : boolean
333
327
description : Whether to take into account an index's synonyms for a particular search.
@@ -425,6 +419,17 @@ advancedSyntaxFeatures:
425
419
x-categories :
426
420
- Query strategy
427
421
422
+ distinct :
423
+ description : Enables de-duplication or grouping of results.
424
+ oneOf :
425
+ - type : boolean
426
+ - type : integer
427
+ minimum : 0
428
+ maximum : 4
429
+ default : 0
430
+ x-categories :
431
+ - Advanced
432
+
428
433
typoTolerance :
429
434
description : Controls whether typo tolerance is enabled and how it is applied.
430
435
oneOf :
Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ listIndicesResponse:
11
11
type : integer
12
12
description : Number of pages.
13
13
example : 100
14
+ required :
15
+ - items
14
16
15
17
fetchedIndex :
16
18
type : object
Original file line number Diff line number Diff line change 19
19
requests :
20
20
type : array
21
21
items :
22
- title : batchOperation
22
+ title : batchRequest
23
23
type : object
24
24
additionalProperties : false
25
25
properties :
Original file line number Diff line number Diff line change 21
21
type : array
22
22
items :
23
23
description : getObjects operation on an index.
24
- title : multipleGetObjectsParams
24
+ title : getObjectsRequest
25
25
type : object
26
26
additionalProperties : false
27
27
required :
55
55
items :
56
56
type : object
57
57
description : Fetched object.
58
+ x-is-generic : true
59
+ required :
60
+ - results
58
61
' 400 ' :
59
62
$ref : ' ../../../common/responses/BadRequest.yml'
60
63
' 402 ' :
Original file line number Diff line number Diff line change 17
17
requests :
18
18
type : array
19
19
items :
20
- title : multipleBatchOperation
20
+ title : multipleBatchRequest
21
21
type : object
22
22
additionalProperties : false
23
23
properties :
Original file line number Diff line number Diff line change 29
29
$ref : ' ../../../common/responses/common.yml#/taskID'
30
30
objectID :
31
31
$ref : ' ../../../common/parameters.yml#/objectID'
32
+ required :
33
+ - taskID
34
+ - createdAt
32
35
' 400 ' :
33
36
$ref : ' ../../../common/responses/BadRequest.yml'
34
37
' 402 ' :
Original file line number Diff line number Diff line change
1
+ rules :
2
+ type : array
3
+ description : Rules to add.
4
+ items :
5
+ $ref : ' #/rule'
6
+
1
7
rule :
2
8
type : object
3
9
description : Rule object.
Original file line number Diff line number Diff line change 13
13
content :
14
14
application/json :
15
15
schema :
16
- type : array
17
- description : Rules to add.
18
- items :
19
- $ref : ' common/schemas.yml#/rule'
16
+ $ref : ' common/schemas.yml#/rules'
20
17
responses :
21
18
' 200 ' :
22
19
$ref : ' ../../../common/responses/UpdatedAt.yml'
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ paths:
115
115
/1/indexes/*/batch :
116
116
$ref : ' paths/objects/multipleBatch.yml'
117
117
/1/indexes/*/objects :
118
- $ref : ' paths/objects/multipleGetObjects .yml'
118
+ $ref : ' paths/objects/getObjects .yml'
119
119
120
120
# ##########################
121
121
# ### Settings Endpoints ###
Original file line number Diff line number Diff line change 147
147
}
148
148
}
149
149
},
150
+ {
151
+ "testName" : " setSettings allow boolean `distinct`" ,
152
+ "parameters" : {
153
+ "indexName" : " theIndexName" ,
154
+ "indexSettings" : {
155
+ "distinct" : true
156
+ },
157
+ "forwardToReplicas" : true
158
+ },
159
+ "request" : {
160
+ "path" : " /1/indexes/theIndexName/settings" ,
161
+ "method" : " PUT" ,
162
+ "body" : {
163
+ "distinct" : true
164
+ },
165
+ "queryParameters" : {
166
+ "forwardToReplicas" : " true"
167
+ }
168
+ }
169
+ },
170
+ {
171
+ "testName" : " setSettings allow integers for `distinct`" ,
172
+ "parameters" : {
173
+ "indexName" : " theIndexName" ,
174
+ "indexSettings" : {
175
+ "distinct" : 1
176
+ },
177
+ "forwardToReplicas" : true
178
+ },
179
+ "request" : {
180
+ "path" : " /1/indexes/theIndexName/settings" ,
181
+ "method" : " PUT" ,
182
+ "body" : {
183
+ "distinct" : 1
184
+ },
185
+ "queryParameters" : {
186
+ "forwardToReplicas" : " true"
187
+ }
188
+ }
189
+ },
150
190
{
151
191
"testName" : " setSettings allow all `indexSettings`" ,
152
192
"parameters" : {
You can’t perform that action at this time.
0 commit comments