@@ -159,12 +159,12 @@ class AsyncElasticsearch(object):
159
159
document : Any ,
160
160
doc_type : Optional [str ] = ...,
161
161
pipeline : Optional [str ] = ...,
162
- refresh : Optional [Union [Union [ Literal ["wait_for" ], str ], bool ]] = ...,
162
+ refresh : Optional [Union [Literal ["false" , "true" , "wait_for" ], bool , str ]] = ...,
163
163
routing : Optional [str ] = ...,
164
164
timeout : Optional [Union [int , str ]] = ...,
165
165
version : Optional [int ] = ...,
166
166
version_type : Optional [
167
- Union [Literal ["internal " , "external " , "external_gte " , "force " ], str ]
167
+ Union [Literal ["external " , "external_gte " , "force " , "internal " ], str ]
168
168
] = ...,
169
169
wait_for_active_shards : Optional [Union [Union [Literal ["all" ], str ], int ]] = ...,
170
170
pretty : Optional [bool ] = ...,
@@ -189,15 +189,15 @@ class AsyncElasticsearch(object):
189
189
id : Optional [str ] = ...,
190
190
if_primary_term : Optional [int ] = ...,
191
191
if_seq_no : Optional [int ] = ...,
192
- op_type : Optional [Union [Literal ["index " , "create " ], str ]] = ...,
192
+ op_type : Optional [Union [Literal ["create " , "index " ], str ]] = ...,
193
193
pipeline : Optional [str ] = ...,
194
- refresh : Optional [Union [Union [ Literal ["wait_for" ], str ], bool ]] = ...,
194
+ refresh : Optional [Union [Literal ["false" , "true" , "wait_for" ], bool , str ]] = ...,
195
195
require_alias : Optional [bool ] = ...,
196
196
routing : Optional [str ] = ...,
197
197
timeout : Optional [Union [int , str ]] = ...,
198
198
version : Optional [int ] = ...,
199
199
version_type : Optional [
200
- Union [Literal ["internal " , "external " , "external_gte " , "force " ], str ]
200
+ Union [Literal ["external " , "external_gte " , "force " , "internal " ], str ]
201
201
] = ...,
202
202
wait_for_active_shards : Optional [Union [Union [Literal ["all" ], str ], int ]] = ...,
203
203
pretty : Optional [bool ] = ...,
@@ -300,12 +300,12 @@ class AsyncElasticsearch(object):
300
300
doc_type : Optional [str ] = ...,
301
301
if_primary_term : Optional [int ] = ...,
302
302
if_seq_no : Optional [int ] = ...,
303
- refresh : Optional [Union [Union [ Literal ["wait_for" ], str ], bool ]] = ...,
303
+ refresh : Optional [Union [Literal ["false" , "true" , "wait_for" ], bool , str ]] = ...,
304
304
routing : Optional [str ] = ...,
305
305
timeout : Optional [Union [int , str ]] = ...,
306
306
version : Optional [int ] = ...,
307
307
version_type : Optional [
308
- Union [Literal ["internal " , "external " , "external_gte " , "force " ], str ]
308
+ Union [Literal ["external " , "external_gte " , "force " , "internal " ], str ]
309
309
] = ...,
310
310
wait_for_active_shards : Optional [Union [Union [Literal ["all" ], str ], int ]] = ...,
311
311
pretty : Optional [bool ] = ...,
@@ -327,9 +327,6 @@ class AsyncElasticsearch(object):
327
327
index : Any ,
328
328
body : Mapping [str , Any ],
329
329
doc_type : Optional [Any ] = ...,
330
- _source : Optional [Any ] = ...,
331
- _source_excludes : Optional [Any ] = ...,
332
- _source_includes : Optional [Any ] = ...,
333
330
allow_no_indices : Optional [bool ] = ...,
334
331
analyze_wildcard : Optional [bool ] = ...,
335
332
analyzer : Optional [Any ] = ...,
@@ -426,7 +423,7 @@ class AsyncElasticsearch(object):
426
423
stored_fields : Optional [Union [List [str ], str ]] = ...,
427
424
version : Optional [int ] = ...,
428
425
version_type : Optional [
429
- Union [Literal ["internal " , "external " , "external_gte " , "force " ], str ]
426
+ Union [Literal ["external " , "external_gte " , "force " , "internal " ], str ]
430
427
] = ...,
431
428
pretty : Optional [bool ] = ...,
432
429
human : Optional [bool ] = ...,
@@ -540,7 +537,7 @@ class AsyncElasticsearch(object):
540
537
stored_fields : Optional [Union [List [str ], str ]] = ...,
541
538
version : Optional [int ] = ...,
542
539
version_type : Optional [
543
- Union [Literal ["internal " , "external " , "external_gte " , "force " ], str ]
540
+ Union [Literal ["external " , "external_gte " , "force " , "internal " ], str ]
544
541
] = ...,
545
542
pretty : Optional [bool ] = ...,
546
543
human : Optional [bool ] = ...,
@@ -868,18 +865,17 @@ class AsyncElasticsearch(object):
868
865
batched_reduce_size : Optional [int ] = ...,
869
866
ccs_minimize_roundtrips : Optional [bool ] = ...,
870
867
collapse : Optional [Mapping [str , Any ]] = ...,
871
- default_operator : Optional [Union [Literal ["AND " , "OR " ], str ]] = ...,
868
+ default_operator : Optional [Union [Literal ["and " , "or " ], str ]] = ...,
872
869
df : Optional [str ] = ...,
873
870
docvalue_fields : Optional [Union [List [str ], str ]] = ...,
874
871
expand_wildcards : Optional [
875
872
Union [
876
- List [Union [Literal ["all" , "open" , "closed" , "hidden" , "none" ], str ]],
877
- Union [Literal ["all" , "open" , "closed" , "hidden" , "none" ], str ],
878
- str ,
873
+ List [Union [Literal ["all" , "closed" , "hidden" , "none" , "open" ], str ]],
874
+ Union [Literal ["all" , "closed" , "hidden" , "none" , "open" ], str ],
879
875
]
880
876
] = ...,
881
877
explain : Optional [bool ] = ...,
882
- fields : Optional [List [Union [ Mapping [str , Any ], str ]]] = ...,
878
+ fields : Optional [List [Mapping [str , Any ]]] = ...,
883
879
from_ : Optional [int ] = ...,
884
880
highlight : Optional [Mapping [str , Any ]] = ...,
885
881
ignore_throttled : Optional [bool ] = ...,
@@ -905,20 +901,18 @@ class AsyncElasticsearch(object):
905
901
scroll : Optional [Union [int , str ]] = ...,
906
902
search_after : Optional [List [Union [None , float , int , str ]]] = ...,
907
903
search_type : Optional [
908
- Union [Literal ["query_then_fetch " , "dfs_query_then_fetch " ], str ]
904
+ Union [Literal ["dfs_query_then_fetch " , "query_then_fetch " ], str ]
909
905
] = ...,
910
906
seq_no_primary_term : Optional [bool ] = ...,
911
907
size : Optional [int ] = ...,
912
908
slice : Optional [Mapping [str , Any ]] = ...,
913
909
sort : Optional [Union [List [str ], str ]] = ...,
914
910
stats : Optional [List [str ]] = ...,
915
911
stored_fields : Optional [Union [List [str ], str ]] = ...,
916
- suggest : Optional [
917
- Union [Mapping [str , Any ], Mapping [str , Mapping [str , Any ]]]
918
- ] = ...,
912
+ suggest : Optional [Mapping [str , Any ]] = ...,
919
913
suggest_field : Optional [str ] = ...,
920
914
suggest_mode : Optional [
921
- Union [Literal ["missing " , "popular " , "always " ], str ]
915
+ Union [Literal ["always " , "missing " , "popular " ], str ]
922
916
] = ...,
923
917
suggest_size : Optional [int ] = ...,
924
918
suggest_text : Optional [str ] = ...,
@@ -1043,11 +1037,11 @@ class AsyncElasticsearch(object):
1043
1037
if_primary_term : Optional [int ] = ...,
1044
1038
if_seq_no : Optional [int ] = ...,
1045
1039
lang : Optional [str ] = ...,
1046
- refresh : Optional [Union [Union [ Literal ["wait_for" ], str ], bool ]] = ...,
1040
+ refresh : Optional [Union [Literal ["false" , "true" , "wait_for" ], bool , str ]] = ...,
1047
1041
require_alias : Optional [bool ] = ...,
1048
1042
retry_on_conflict : Optional [int ] = ...,
1049
1043
routing : Optional [str ] = ...,
1050
- script : Optional [Union [ Mapping [str , Any ], str ]] = ...,
1044
+ script : Optional [Mapping [str , Any ]] = ...,
1051
1045
scripted_upsert : Optional [bool ] = ...,
1052
1046
timeout : Optional [Union [int , str ]] = ...,
1053
1047
upsert : Optional [Any ] = ...,
@@ -1071,9 +1065,6 @@ class AsyncElasticsearch(object):
1071
1065
index : Any ,
1072
1066
body : Optional [Mapping [str , Any ]] = ...,
1073
1067
doc_type : Optional [Any ] = ...,
1074
- _source : Optional [Any ] = ...,
1075
- _source_excludes : Optional [Any ] = ...,
1076
- _source_includes : Optional [Any ] = ...,
1077
1068
allow_no_indices : Optional [bool ] = ...,
1078
1069
analyze_wildcard : Optional [bool ] = ...,
1079
1070
analyzer : Optional [Any ] = ...,
@@ -1240,23 +1231,12 @@ class AsyncElasticsearch(object):
1240
1231
extent : Optional [int ] = ...,
1241
1232
fields : Optional [Union [List [str ], str ]] = ...,
1242
1233
grid_precision : Optional [int ] = ...,
1243
- grid_type : Optional [Union [Literal ["grid " , "point " , "centroid " ], str ]] = ...,
1234
+ grid_type : Optional [Union [Literal ["centroid " , "grid " , "point " ], str ]] = ...,
1244
1235
query : Optional [Mapping [str , Any ]] = ...,
1245
1236
runtime_mappings : Optional [Mapping [str , Mapping [str , Any ]]] = ...,
1246
1237
size : Optional [int ] = ...,
1247
1238
sort : Optional [
1248
- Union [
1249
- List [
1250
- Union [
1251
- Mapping [str , Any ],
1252
- Union [Literal ["asc" , "desc" , "_doc" ], str ],
1253
- str ,
1254
- ]
1255
- ],
1256
- Union [
1257
- Mapping [str , Any ], Union [Literal ["asc" , "desc" , "_doc" ], str ], str
1258
- ],
1259
- ]
1239
+ Union [List [Union [Mapping [str , Any ], str ]], Union [Mapping [str , Any ], str ]]
1260
1240
] = ...,
1261
1241
pretty : Optional [bool ] = ...,
1262
1242
human : Optional [bool ] = ...,
0 commit comments