Skip to content

Commit 7557ee2

Browse files
committed
Release 7.8.0a1
1 parent 8504c79 commit 7557ee2

27 files changed

+671
-622
lines changed

Changelog.rst

Lines changed: 223 additions & 174 deletions
Large diffs are not rendered by default.

elasticsearch/_async/client/__init__.py

Lines changed: 70 additions & 70 deletions
Large diffs are not rendered by default.

elasticsearch/_async/client/async_search.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -105,24 +105,24 @@ async def submit(self, body=None, index=None, params=None, headers=None):
105105
expression resolves into no concrete indices. (This includes `_all`
106106
string or when no indices have been specified)
107107
:arg allow_partial_search_results: Indicate if an error should
108-
be returned if there is a partial search failure or timeout Default:
108+
be returned if there is a partial search failure or timeout Default:
109109
True
110110
:arg analyze_wildcard: Specify whether wildcard and prefix
111111
queries should be analyzed (default: false)
112112
:arg analyzer: The analyzer to use for the query string
113113
:arg batched_reduce_size: The number of shard results that
114114
should be reduced at once on the coordinating node. This value should be
115115
used as the granularity at which progress results will be made
116-
available. Default: 5
116+
available. Default: 5
117117
:arg default_operator: The default operator for query string
118-
query (AND or OR) Valid choices: AND, OR Default: OR
118+
query (AND or OR) Valid choices: AND, OR Default: OR
119119
:arg df: The field to use as default where no field prefix is
120120
given in the query string
121121
:arg docvalue_fields: A comma-separated list of fields to return
122122
as the docvalue representation of a field for each hit
123123
:arg expand_wildcards: Whether to expand wildcard expression to
124-
concrete indices that are open, closed or both. Valid choices: open,
125-
closed, hidden, none, all Default: open
124+
concrete indices that are open, closed or both. Valid choices: open,
125+
closed, hidden, none, all Default: open
126126
:arg explain: Specify whether to return detailed information
127127
about score computation as part of a hit
128128
:arg from_: Starting offset (default: 0)
@@ -131,7 +131,7 @@ async def submit(self, body=None, index=None, params=None, headers=None):
131131
:arg ignore_unavailable: Whether specified concrete indices
132132
should be ignored when unavailable (missing or closed)
133133
:arg keep_alive: Update the time interval in which the results
134-
(partial or final) for this search will be available Default: 5d
134+
(partial or final) for this search will be available Default: 5d
135135
:arg keep_on_completion: Control whether the response should be
136136
stored in the cluster if it completed within the provided
137137
[wait_for_completion] time (default: false)
@@ -140,14 +140,14 @@ async def submit(self, body=None, index=None, params=None, headers=None):
140140
:arg max_concurrent_shard_requests: The number of concurrent
141141
shard requests per node this search executes concurrently. This value
142142
should be used to limit the impact of the search on the cluster in order
143-
to limit the number of concurrent shard requests Default: 5
143+
to limit the number of concurrent shard requests Default: 5
144144
:arg preference: Specify the node or shard the operation should
145145
be performed on (default: random)
146146
:arg q: Query in the Lucene query string syntax
147147
:arg request_cache: Specify if request cache should be used for
148148
this request or not, defaults to true
149149
:arg routing: A comma-separated list of specific routing values
150-
:arg search_type: Search operation type Valid choices:
150+
:arg search_type: Search operation type Valid choices:
151151
query_then_fetch, dfs_query_then_fetch
152152
:arg seq_no_primary_term: Specify whether to return sequence
153153
number and primary term of the last modification of each hit
@@ -158,8 +158,8 @@ async def submit(self, body=None, index=None, params=None, headers=None):
158158
:arg stored_fields: A comma-separated list of stored fields to
159159
return as part of a hit
160160
:arg suggest_field: Specify which field to use for suggestions
161-
:arg suggest_mode: Specify suggest mode Valid choices:
162-
missing, popular, always Default: missing
161+
:arg suggest_mode: Specify suggest mode Valid choices: missing,
162+
popular, always Default: missing
163163
:arg suggest_size: How many suggestions to return in response
164164
:arg suggest_text: The source text for which the suggestions
165165
should be returned
@@ -176,7 +176,7 @@ async def submit(self, body=None, index=None, params=None, headers=None):
176176
:arg version: Specify whether to return document version as part
177177
of a hit
178178
:arg wait_for_completion_timeout: Specify the time that the
179-
request should block waiting for the final response Default: 1s
179+
request should block waiting for the final response Default: 1s
180180
"""
181181
# from is a reserved word so it cannot be used, use from_ instead
182182
if "from_" in params:

elasticsearch/_async/client/cat.py

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ async def aliases(self, name=None, params=None, headers=None):
1515
1616
:arg name: A comma-separated list of alias names to return
1717
:arg expand_wildcards: Whether to expand wildcard expression to
18-
concrete indices that are open, closed or both. Valid choices: open,
19-
closed, hidden, none, all Default: all
18+
concrete indices that are open, closed or both. Valid choices: open,
19+
closed, hidden, none, all Default: all
2020
:arg format: a short version of the Accept header, e.g. json,
2121
yaml
2222
:arg h: Comma-separated list of column names to display
@@ -40,7 +40,7 @@ async def allocation(self, node_id=None, params=None, headers=None):
4040
4141
:arg node_id: A comma-separated list of node IDs or names to
4242
limit the returned information
43-
:arg bytes: The unit in which to display byte values Valid
43+
:arg bytes: The unit in which to display byte values Valid
4444
choices: b, k, kb, m, mb, g, gb, t, tb, p, pb
4545
:arg format: a short version of the Accept header, e.g. json,
4646
yaml
@@ -94,9 +94,9 @@ async def health(self, params=None, headers=None):
9494
:arg help: Return help information
9595
:arg s: Comma-separated list of column names or column aliases
9696
to sort by
97-
:arg time: The unit in which to display time values Valid
97+
:arg time: The unit in which to display time values Valid
9898
choices: d, h, m, s, ms, micros, nanos
99-
:arg ts: Set to false to disable timestamping Default: True
99+
:arg ts: Set to false to disable timestamping Default: True
100100
:arg v: Verbose mode. Display column headers
101101
"""
102102
return await self.transport.perform_request(
@@ -140,17 +140,17 @@ async def indices(self, index=None, params=None, headers=None):
140140
141141
:arg index: A comma-separated list of index names to limit the
142142
returned information
143-
:arg bytes: The unit in which to display byte values Valid
143+
:arg bytes: The unit in which to display byte values Valid
144144
choices: b, k, kb, m, mb, g, gb, t, tb, p, pb
145145
:arg expand_wildcards: Whether to expand wildcard expression to
146-
concrete indices that are open, closed or both. Valid choices: open,
147-
closed, hidden, none, all Default: all
146+
concrete indices that are open, closed or both. Valid choices: open,
147+
closed, hidden, none, all Default: all
148148
:arg format: a short version of the Accept header, e.g. json,
149149
yaml
150150
:arg h: Comma-separated list of column names to display
151151
:arg health: A health status ("green", "yellow", or "red" to
152-
filter only indices matching the specified health status Valid
153-
choices: green, yellow, red
152+
filter only indices matching the specified health status Valid choices:
153+
green, yellow, red
154154
:arg help: Return help information
155155
:arg include_unloaded_segments: If set to true segment stats
156156
will include stats for segments that are not currently loaded into
@@ -162,7 +162,7 @@ async def indices(self, index=None, params=None, headers=None):
162162
:arg pri: Set to true to return stats only for primary shards
163163
:arg s: Comma-separated list of column names or column aliases
164164
to sort by
165-
:arg time: The unit in which to display time values Valid
165+
:arg time: The unit in which to display time values Valid
166166
choices: d, h, m, s, ms, micros, nanos
167167
:arg v: Verbose mode. Display column headers
168168
"""
@@ -209,7 +209,7 @@ async def nodes(self, params=None, headers=None):
209209
Returns basic statistics about performance of cluster nodes.
210210
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.8/cat-nodes.html>`_
211211
212-
:arg bytes: The unit in which to display byte values Valid
212+
:arg bytes: The unit in which to display byte values Valid
213213
choices: b, k, kb, m, mb, g, gb, t, tb, p, pb
214214
:arg format: a short version of the Accept header, e.g. json,
215215
yaml
@@ -223,7 +223,7 @@ async def nodes(self, params=None, headers=None):
223223
to master node
224224
:arg s: Comma-separated list of column names or column aliases
225225
to sort by
226-
:arg time: The unit in which to display time values Valid
226+
:arg time: The unit in which to display time values Valid
227227
choices: d, h, m, s, ms, micros, nanos
228228
:arg v: Verbose mode. Display column headers
229229
"""
@@ -243,7 +243,7 @@ async def recovery(self, index=None, params=None, headers=None):
243243
names to limit the returned information
244244
:arg active_only: If `true`, the response only includes ongoing
245245
shard recoveries
246-
:arg bytes: The unit in which to display byte values Valid
246+
:arg bytes: The unit in which to display byte values Valid
247247
choices: b, k, kb, m, mb, g, gb, t, tb, p, pb
248248
:arg detailed: If `true`, the response includes detailed
249249
information about shard recoveries
@@ -253,7 +253,7 @@ async def recovery(self, index=None, params=None, headers=None):
253253
:arg help: Return help information
254254
:arg s: Comma-separated list of column names or column aliases
255255
to sort by
256-
:arg time: The unit in which to display time values Valid
256+
:arg time: The unit in which to display time values Valid
257257
choices: d, h, m, s, ms, micros, nanos
258258
:arg v: Verbose mode. Display column headers
259259
"""
@@ -271,7 +271,7 @@ async def shards(self, index=None, params=None, headers=None):
271271
272272
:arg index: A comma-separated list of index names to limit the
273273
returned information
274-
:arg bytes: The unit in which to display byte values Valid
274+
:arg bytes: The unit in which to display byte values Valid
275275
choices: b, k, kb, m, mb, g, gb, t, tb, p, pb
276276
:arg format: a short version of the Accept header, e.g. json,
277277
yaml
@@ -283,7 +283,7 @@ async def shards(self, index=None, params=None, headers=None):
283283
to master node
284284
:arg s: Comma-separated list of column names or column aliases
285285
to sort by
286-
:arg time: The unit in which to display time values Valid
286+
:arg time: The unit in which to display time values Valid
287287
choices: d, h, m, s, ms, micros, nanos
288288
:arg v: Verbose mode. Display column headers
289289
"""
@@ -299,7 +299,7 @@ async def segments(self, index=None, params=None, headers=None):
299299
300300
:arg index: A comma-separated list of index names to limit the
301301
returned information
302-
:arg bytes: The unit in which to display byte values Valid
302+
:arg bytes: The unit in which to display byte values Valid
303303
choices: b, k, kb, m, mb, g, gb, t, tb, p, pb
304304
:arg format: a short version of the Accept header, e.g. json,
305305
yaml
@@ -329,7 +329,7 @@ async def pending_tasks(self, params=None, headers=None):
329329
to master node
330330
:arg s: Comma-separated list of column names or column aliases
331331
to sort by
332-
:arg time: The unit in which to display time values Valid
332+
:arg time: The unit in which to display time values Valid
333333
choices: d, h, m, s, ms, micros, nanos
334334
:arg v: Verbose mode. Display column headers
335335
"""
@@ -356,7 +356,7 @@ async def thread_pool(self, thread_pool_patterns=None, params=None, headers=None
356356
to master node
357357
:arg s: Comma-separated list of column names or column aliases
358358
to sort by
359-
:arg size: The multiplier in which to display values Valid
359+
:arg size: The multiplier in which to display values Valid
360360
choices: , k, m, g, t, p
361361
:arg v: Verbose mode. Display column headers
362362
"""
@@ -376,7 +376,7 @@ async def fielddata(self, fields=None, params=None, headers=None):
376376
377377
:arg fields: A comma-separated list of fields to return in the
378378
output
379-
:arg bytes: The unit in which to display byte values Valid
379+
:arg bytes: The unit in which to display byte values Valid
380380
choices: b, k, kb, m, mb, g, gb, t, tb, p, pb
381381
:arg format: a short version of the Accept header, e.g. json,
382382
yaml
@@ -479,7 +479,7 @@ async def snapshots(self, repository=None, params=None, headers=None):
479479
to master node
480480
:arg s: Comma-separated list of column names or column aliases
481481
to sort by
482-
:arg time: The unit in which to display time values Valid
482+
:arg time: The unit in which to display time values Valid
483483
choices: d, h, m, s, ms, micros, nanos
484484
:arg v: Verbose mode. Display column headers
485485
"""
@@ -523,7 +523,7 @@ async def tasks(self, params=None, headers=None):
523523
Set to -1 to return all.
524524
:arg s: Comma-separated list of column names or column aliases
525525
to sort by
526-
:arg time: The unit in which to display time values Valid
526+
:arg time: The unit in which to display time values Valid
527527
choices: d, h, m, s, ms, micros, nanos
528528
:arg v: Verbose mode. Display column headers
529529
"""
@@ -564,15 +564,15 @@ async def ml_data_frame_analytics(self, id=None, params=None, headers=None):
564564
:arg allow_no_match: Whether to ignore if a wildcard expression
565565
matches no configs. (This includes `_all` string or when no configs have
566566
been specified)
567-
:arg bytes: The unit in which to display byte values Valid
567+
:arg bytes: The unit in which to display byte values Valid
568568
choices: b, k, kb, m, mb, g, gb, t, tb, p, pb
569569
:arg format: a short version of the Accept header, e.g. json,
570570
yaml
571571
:arg h: Comma-separated list of column names to display
572572
:arg help: Return help information
573573
:arg s: Comma-separated list of column names or column aliases
574574
to sort by
575-
:arg time: The unit in which to display time values Valid
575+
:arg time: The unit in which to display time values Valid
576576
choices: d, h, m, s, ms, micros, nanos
577577
:arg v: Verbose mode. Display column headers
578578
"""
@@ -599,7 +599,7 @@ async def ml_datafeeds(self, datafeed_id=None, params=None, headers=None):
599599
:arg help: Return help information
600600
:arg s: Comma-separated list of column names or column aliases
601601
to sort by
602-
:arg time: The unit in which to display time values Valid
602+
:arg time: The unit in which to display time values Valid
603603
choices: d, h, m, s, ms, micros, nanos
604604
:arg v: Verbose mode. Display column headers
605605
"""
@@ -620,15 +620,15 @@ async def ml_jobs(self, job_id=None, params=None, headers=None):
620620
:arg allow_no_jobs: Whether to ignore if a wildcard expression
621621
matches no jobs. (This includes `_all` string or when no jobs have been
622622
specified)
623-
:arg bytes: The unit in which to display byte values Valid
623+
:arg bytes: The unit in which to display byte values Valid
624624
choices: b, k, kb, m, mb, g, gb, t, tb, p, pb
625625
:arg format: a short version of the Accept header, e.g. json,
626626
yaml
627627
:arg h: Comma-separated list of column names to display
628628
:arg help: Return help information
629629
:arg s: Comma-separated list of column names or column aliases
630630
to sort by
631-
:arg time: The unit in which to display time values Valid
631+
:arg time: The unit in which to display time values Valid
632632
choices: d, h, m, s, ms, micros, nanos
633633
:arg v: Verbose mode. Display column headers
634634
"""
@@ -659,8 +659,8 @@ async def ml_trained_models(self, model_id=None, params=None, headers=None):
659659
:arg model_id: The ID of the trained models stats to fetch
660660
:arg allow_no_match: Whether to ignore if a wildcard expression
661661
matches no trained models. (This includes `_all` string or when no
662-
trained models have been specified) Default: True
663-
:arg bytes: The unit in which to display byte values Valid
662+
trained models have been specified) Default: True
663+
:arg bytes: The unit in which to display byte values Valid
664664
choices: b, k, kb, m, mb, g, gb, t, tb, p, pb
665665
:arg format: a short version of the Accept header, e.g. json,
666666
yaml
@@ -671,7 +671,7 @@ async def ml_trained_models(self, model_id=None, params=None, headers=None):
671671
to sort by
672672
:arg size: specifies a max number of trained models to get
673673
Default: 100
674-
:arg time: The unit in which to display time values Valid
674+
:arg time: The unit in which to display time values Valid
675675
choices: d, h, m, s, ms, micros, nanos
676676
:arg v: Verbose mode. Display column headers
677677
"""
@@ -708,7 +708,7 @@ async def transforms(self, transform_id=None, params=None, headers=None):
708708
to sort by
709709
:arg size: specifies a max number of transforms to get, defaults
710710
to 100
711-
:arg time: The unit in which to display time values Valid
711+
:arg time: The unit in which to display time values Valid
712712
choices: d, h, m, s, ms, micros, nanos
713713
:arg v: Verbose mode. Display column headers
714714
"""

elasticsearch/_async/client/ccr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ async def follow(self, index, body, params=None, headers=None):
3737
that must be active before returning. Defaults to 0. Set to `all` for
3838
all shard copies, otherwise set to any non-negative value less than or
3939
equal to the total number of copies for the shard (number of replicas +
40-
1) Default: 0
40+
1) Default: 0
4141
"""
4242
for param in (index, body):
4343
if param in SKIP_IN_PATH:

0 commit comments

Comments
 (0)