@@ -667,7 +667,7 @@ async def count(
667
667
specified.
668
668
:arg default_operator: The default operator for query string
669
669
query: `AND` or `OR`. This parameter can only be used when the `q` query
670
- string parameter is specified. Valid choices are and, or .
670
+ string parameter is specified. Valid choices are and, AND, or, OR .
671
671
:arg df: Field to use as default where no field prefix is given
672
672
in the query string. This parameter can only be used when the `q` query
673
673
string parameter is specified.
@@ -855,7 +855,7 @@ async def delete_by_query(
855
855
:arg conflicts: What to do if delete by query hits version
856
856
conflicts: `abort` or `proceed`. Valid choices are abort, proceed.
857
857
:arg default_operator: The default operator for query string
858
- query: `AND` or `OR`. Valid choices are and, or .
858
+ query: `AND` or `OR`. Valid choices are and, AND, or, OR .
859
859
:arg df: Field to use as default where no field prefix is given
860
860
in the query string.
861
861
:arg error_trace: Whether to include the stack trace of returned
@@ -1225,7 +1225,7 @@ async def explain(
1225
1225
parameter can only be used when the `q` query string parameter is
1226
1226
specified.
1227
1227
:arg default_operator: The default operator for query string
1228
- query: `AND` or `OR`. Valid choices are and, or .
1228
+ query: `AND` or `OR`. Valid choices are and, AND, or, OR .
1229
1229
:arg df: Field to use as default where no field prefix is given
1230
1230
in the query string. Default is _all.
1231
1231
:arg error_trace: Whether to include the stack trace of returned
@@ -2281,7 +2281,7 @@ async def search(
2281
2281
executing cross-cluster search (CCS) requests. Default is True.
2282
2282
:arg default_operator: The default operator for query string
2283
2283
query: AND or OR. This parameter can only be used when the `q` query
2284
- string parameter is specified. Valid choices are and, or .
2284
+ string parameter is specified. Valid choices are and, AND, or, OR .
2285
2285
:arg df: Field to use as default where no field prefix is given
2286
2286
in the query string. This parameter can only be used when the q query
2287
2287
string parameter is specified.
@@ -2451,6 +2451,7 @@ async def search(
2451
2451
)
2452
2452
async def search_shards (
2453
2453
self ,
2454
+ body : Any = None ,
2454
2455
index : Any = None ,
2455
2456
params : Any = None ,
2456
2457
headers : Any = None ,
@@ -2460,6 +2461,9 @@ async def search_shards(
2460
2461
executed against.
2461
2462
2462
2463
2464
+ :arg body: Defines the parameters that can be used in the
2465
+ `search_shards` endpoint request. See documentation for supported query
2466
+ syntax.
2463
2467
:arg index: Returns the indexes and shards that a search request
2464
2468
would be executed against.
2465
2469
:arg allow_no_indices: If `false`, the request returns an error
@@ -2495,7 +2499,11 @@ async def search_shards(
2495
2499
libraries that do not accept a request body for non-POST requests.
2496
2500
"""
2497
2501
return await self .transport .perform_request (
2498
- "GET" , _make_path (index , "_search_shards" ), params = params , headers = headers
2502
+ "POST" ,
2503
+ _make_path (index , "_search_shards" ),
2504
+ params = params ,
2505
+ headers = headers ,
2506
+ body = body ,
2499
2507
)
2500
2508
2501
2509
@query_params (
@@ -2834,7 +2842,7 @@ async def update_by_query(
2834
2842
:arg conflicts: What to do if update by query hits version
2835
2843
conflicts: `abort` or `proceed`. Valid choices are abort, proceed.
2836
2844
:arg default_operator: The default operator for query string
2837
- query: `AND` or `OR`. Valid choices are and, or .
2845
+ query: `AND` or `OR`. Valid choices are and, AND, or, OR .
2838
2846
:arg df: Field to use as default where no field prefix is given
2839
2847
in the query string.
2840
2848
:arg error_trace: Whether to include the stack trace of returned
0 commit comments