24
24
25
25
26
26
class AsyncSearchClient (NamespacedClient ):
27
+
27
28
@_rewrite_parameters ()
28
29
async def delete (
29
30
self ,
30
31
* ,
31
32
id : str ,
32
33
error_trace : t .Optional [bool ] = None ,
33
- filter_path : t .Optional [
34
- t .Union [str , t .Union [t .List [str ], t .Tuple [str , ...]]]
35
- ] = None ,
34
+ filter_path : t .Optional [t .Union [str , t .Sequence [str ]]] = None ,
36
35
human : t .Optional [bool ] = None ,
37
36
pretty : t .Optional [bool ] = None ,
38
37
) -> ObjectApiResponse [t .Any ]:
@@ -67,9 +66,7 @@ async def get(
67
66
* ,
68
67
id : str ,
69
68
error_trace : t .Optional [bool ] = None ,
70
- filter_path : t .Optional [
71
- t .Union [str , t .Union [t .List [str ], t .Tuple [str , ...]]]
72
- ] = None ,
69
+ filter_path : t .Optional [t .Union [str , t .Sequence [str ]]] = None ,
73
70
human : t .Optional [bool ] = None ,
74
71
keep_alive : t .Optional [t .Union ["t.Literal[-1]" , "t.Literal[0]" , str ]] = None ,
75
72
pretty : t .Optional [bool ] = None ,
@@ -129,9 +126,7 @@ async def status(
129
126
* ,
130
127
id : str ,
131
128
error_trace : t .Optional [bool ] = None ,
132
- filter_path : t .Optional [
133
- t .Union [str , t .Union [t .List [str ], t .Tuple [str , ...]]]
134
- ] = None ,
129
+ filter_path : t .Optional [t .Union [str , t .Sequence [str ]]] = None ,
135
130
human : t .Optional [bool ] = None ,
136
131
pretty : t .Optional [bool ] = None ,
137
132
) -> ObjectApiResponse [t .Any ]:
@@ -172,7 +167,7 @@ async def status(
172
167
async def submit (
173
168
self ,
174
169
* ,
175
- index : t .Optional [t .Union [str , t .Union [ t . List [ str ], t . Tuple [ str , ...] ]]] = None ,
170
+ index : t .Optional [t .Union [str , t .Sequence [ str ]]] = None ,
176
171
aggregations : t .Optional [t .Mapping [str , t .Mapping [str , t .Any ]]] = None ,
177
172
aggs : t .Optional [t .Mapping [str , t .Mapping [str , t .Any ]]] = None ,
178
173
allow_no_indices : t .Optional [bool ] = None ,
@@ -184,53 +179,30 @@ async def submit(
184
179
collapse : t .Optional [t .Mapping [str , t .Any ]] = None ,
185
180
default_operator : t .Optional [t .Union ["t.Literal['and', 'or']" , str ]] = None ,
186
181
df : t .Optional [str ] = None ,
187
- docvalue_fields : t .Optional [
188
- t .Union [t .List [t .Mapping [str , t .Any ]], t .Tuple [t .Mapping [str , t .Any ], ...]]
189
- ] = None ,
182
+ docvalue_fields : t .Optional [t .Sequence [t .Mapping [str , t .Any ]]] = None ,
190
183
error_trace : t .Optional [bool ] = None ,
191
184
expand_wildcards : t .Optional [
192
185
t .Union [
193
- t .Union ["t.Literal['all', 'closed', 'hidden', 'none', 'open']" , str ],
194
- t .Union [
195
- t .List [
196
- t .Union [
197
- "t.Literal['all', 'closed', 'hidden', 'none', 'open']" , str
198
- ]
199
- ],
200
- t .Tuple [
201
- t .Union [
202
- "t.Literal['all', 'closed', 'hidden', 'none', 'open']" , str
203
- ],
204
- ...,
205
- ],
186
+ t .Sequence [
187
+ t .Union ["t.Literal['all', 'closed', 'hidden', 'none', 'open']" , str ]
206
188
],
189
+ t .Union ["t.Literal['all', 'closed', 'hidden', 'none', 'open']" , str ],
207
190
]
208
191
] = None ,
209
192
explain : t .Optional [bool ] = None ,
210
193
ext : t .Optional [t .Mapping [str , t .Any ]] = None ,
211
- fields : t .Optional [
212
- t .Union [t .List [t .Mapping [str , t .Any ]], t .Tuple [t .Mapping [str , t .Any ], ...]]
213
- ] = None ,
214
- filter_path : t .Optional [
215
- t .Union [str , t .Union [t .List [str ], t .Tuple [str , ...]]]
216
- ] = None ,
194
+ fields : t .Optional [t .Sequence [t .Mapping [str , t .Any ]]] = None ,
195
+ filter_path : t .Optional [t .Union [str , t .Sequence [str ]]] = None ,
217
196
from_ : t .Optional [int ] = None ,
218
197
highlight : t .Optional [t .Mapping [str , t .Any ]] = None ,
219
198
human : t .Optional [bool ] = None ,
220
199
ignore_throttled : t .Optional [bool ] = None ,
221
200
ignore_unavailable : t .Optional [bool ] = None ,
222
- indices_boost : t .Optional [
223
- t .Union [t .List [t .Mapping [str , float ]], t .Tuple [t .Mapping [str , float ], ...]]
224
- ] = None ,
201
+ indices_boost : t .Optional [t .Sequence [t .Mapping [str , float ]]] = None ,
225
202
keep_alive : t .Optional [t .Union ["t.Literal[-1]" , "t.Literal[0]" , str ]] = None ,
226
203
keep_on_completion : t .Optional [bool ] = None ,
227
204
knn : t .Optional [
228
- t .Union [
229
- t .Mapping [str , t .Any ],
230
- t .Union [
231
- t .List [t .Mapping [str , t .Any ]], t .Tuple [t .Mapping [str , t .Any ], ...]
232
- ],
233
- ]
205
+ t .Union [t .Mapping [str , t .Any ], t .Sequence [t .Mapping [str , t .Any ]]]
234
206
] = None ,
235
207
lenient : t .Optional [bool ] = None ,
236
208
max_concurrent_shard_requests : t .Optional [int ] = None ,
@@ -246,23 +218,15 @@ async def submit(
246
218
query : t .Optional [t .Mapping [str , t .Any ]] = None ,
247
219
request_cache : t .Optional [bool ] = None ,
248
220
rescore : t .Optional [
249
- t .Union [
250
- t .Mapping [str , t .Any ],
251
- t .Union [
252
- t .List [t .Mapping [str , t .Any ]], t .Tuple [t .Mapping [str , t .Any ], ...]
253
- ],
254
- ]
221
+ t .Union [t .Mapping [str , t .Any ], t .Sequence [t .Mapping [str , t .Any ]]]
255
222
] = None ,
256
223
rest_total_hits_as_int : t .Optional [bool ] = None ,
257
224
routing : t .Optional [str ] = None ,
258
225
runtime_mappings : t .Optional [t .Mapping [str , t .Mapping [str , t .Any ]]] = None ,
259
226
script_fields : t .Optional [t .Mapping [str , t .Mapping [str , t .Any ]]] = None ,
260
227
scroll : t .Optional [t .Union ["t.Literal[-1]" , "t.Literal[0]" , str ]] = None ,
261
228
search_after : t .Optional [
262
- t .Union [
263
- t .List [t .Union [None , bool , float , int , str , t .Any ]],
264
- t .Tuple [t .Union [None , bool , float , int , str , t .Any ], ...],
265
- ]
229
+ t .Sequence [t .Union [None , bool , float , int , str , t .Any ]]
266
230
] = None ,
267
231
search_type : t .Optional [
268
232
t .Union ["t.Literal['dfs_query_then_fetch', 'query_then_fetch']" , str ]
@@ -272,24 +236,15 @@ async def submit(
272
236
slice : t .Optional [t .Mapping [str , t .Any ]] = None ,
273
237
sort : t .Optional [
274
238
t .Union [
239
+ t .Sequence [t .Union [str , t .Mapping [str , t .Any ]]],
275
240
t .Union [str , t .Mapping [str , t .Any ]],
276
- t .Union [
277
- t .List [t .Union [str , t .Mapping [str , t .Any ]]],
278
- t .Tuple [t .Union [str , t .Mapping [str , t .Any ]], ...],
279
- ],
280
241
]
281
242
] = None ,
282
243
source : t .Optional [t .Union [bool , t .Mapping [str , t .Any ]]] = None ,
283
- source_excludes : t .Optional [
284
- t .Union [str , t .Union [t .List [str ], t .Tuple [str , ...]]]
285
- ] = None ,
286
- source_includes : t .Optional [
287
- t .Union [str , t .Union [t .List [str ], t .Tuple [str , ...]]]
288
- ] = None ,
289
- stats : t .Optional [t .Union [t .List [str ], t .Tuple [str , ...]]] = None ,
290
- stored_fields : t .Optional [
291
- t .Union [str , t .Union [t .List [str ], t .Tuple [str , ...]]]
292
- ] = None ,
244
+ source_excludes : t .Optional [t .Union [str , t .Sequence [str ]]] = None ,
245
+ source_includes : t .Optional [t .Union [str , t .Sequence [str ]]] = None ,
246
+ stats : t .Optional [t .Sequence [str ]] = None ,
247
+ stored_fields : t .Optional [t .Union [str , t .Sequence [str ]]] = None ,
293
248
suggest : t .Optional [t .Mapping [str , t .Any ]] = None ,
294
249
suggest_field : t .Optional [str ] = None ,
295
250
suggest_mode : t .Optional [
0 commit comments