@@ -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
@@ -2020,7 +2020,7 @@ async def reindex_rethrottle(
2020
2020
headers : Any = None ,
2021
2021
) -> Any :
2022
2022
"""
2023
- Changes the number of requests per second for a particular Reindex operation.
2023
+ Changes the number of requests per second for a particular reindex operation.
2024
2024
2025
2025
2026
2026
:arg task_id: Identifier for the task.
@@ -2138,8 +2138,6 @@ async def scroll(
2138
2138
Allows to retrieve a large numbers of results from a single search request.
2139
2139
2140
2140
2141
- :arg body: The scroll ID if not passed by URL or query
2142
- parameter.
2143
2141
:arg scroll_id: The scroll ID for scrolled search
2144
2142
:arg error_trace: Whether to include the stack trace of returned
2145
2143
errors. Default is false.
@@ -2281,7 +2279,7 @@ async def search(
2281
2279
executing cross-cluster search (CCS) requests. Default is True.
2282
2280
:arg default_operator: The default operator for query string
2283
2281
query: AND or OR. This parameter can only be used when the `q` query
2284
- string parameter is specified. Valid choices are and, or .
2282
+ string parameter is specified. Valid choices are and, AND, or, OR .
2285
2283
:arg df: Field to use as default where no field prefix is given
2286
2284
in the query string. This parameter can only be used when the q query
2287
2285
string parameter is specified.
@@ -2451,6 +2449,7 @@ async def search(
2451
2449
)
2452
2450
async def search_shards (
2453
2451
self ,
2452
+ body : Any = None ,
2454
2453
index : Any = None ,
2455
2454
params : Any = None ,
2456
2455
headers : Any = None ,
@@ -2460,6 +2459,9 @@ async def search_shards(
2460
2459
executed against.
2461
2460
2462
2461
2462
+ :arg body: Defines the parameters that can be used in the
2463
+ `search_shards` endpoint request. See documentation for supported query
2464
+ syntax.
2463
2465
:arg index: Returns the indexes and shards that a search request
2464
2466
would be executed against.
2465
2467
:arg allow_no_indices: If `false`, the request returns an error
@@ -2495,7 +2497,11 @@ async def search_shards(
2495
2497
libraries that do not accept a request body for non-POST requests.
2496
2498
"""
2497
2499
return await self .transport .perform_request (
2498
- "GET" , _make_path (index , "_search_shards" ), params = params , headers = headers
2500
+ "POST" ,
2501
+ _make_path (index , "_search_shards" ),
2502
+ params = params ,
2503
+ headers = headers ,
2504
+ body = body ,
2499
2505
)
2500
2506
2501
2507
@query_params (
@@ -2834,7 +2840,7 @@ async def update_by_query(
2834
2840
:arg conflicts: What to do if update by query hits version
2835
2841
conflicts: `abort` or `proceed`. Valid choices are abort, proceed.
2836
2842
:arg default_operator: The default operator for query string
2837
- query: `AND` or `OR`. Valid choices are and, or .
2843
+ query: `AND` or `OR`. Valid choices are and, AND, or, OR .
2838
2844
:arg df: Field to use as default where no field prefix is given
2839
2845
in the query string.
2840
2846
:arg error_trace: Whether to include the stack trace of returned
0 commit comments