17
17
from .utils import query_params , _make_path , SKIP_IN_PATH , _bulk_body
18
18
19
19
# xpack APIs
20
+ from .async_search import AsyncSearchClient
21
+ from .autoscaling import AutoscalingClient
20
22
from .ccr import CcrClient
21
23
from .data_frame import Data_FrameClient
22
24
from .deprecation import DeprecationClient
25
+ from .eql import EqlClient
23
26
from .graph import GraphClient
24
27
from .ilm import IlmClient
25
28
from .license import LicenseClient
@@ -237,9 +240,12 @@ class as kwargs, or a string in the format of ``host[:port]`` which will be
237
240
self .tasks = TasksClient (self )
238
241
239
242
self .xpack = XPackClient (self )
243
+ self .async_search = AsyncSearchClient (self )
244
+ self .autoscaling = AutoscalingClient (self )
240
245
self .ccr = CcrClient (self )
241
246
self .data_frame = Data_FrameClient (self )
242
247
self .deprecation = DeprecationClient (self )
248
+ self .eql = EqlClient (self )
243
249
self .graph = GraphClient (self )
244
250
self .ilm = IlmClient (self )
245
251
self .indices = IndicesClient (self )
@@ -520,7 +526,7 @@ def count(self, body=None, index=None, doc_type=None, params=None, headers=None)
520
526
given in the query string
521
527
:arg expand_wildcards: Whether to expand wildcard expression to
522
528
concrete indices that are open, closed or both. Valid choices: open,
523
- closed, none, all Default: open
529
+ closed, hidden, none, all Default: open
524
530
:arg ignore_throttled: Whether specified concrete, expanded or
525
531
aliased indices should be ignored when throttled
526
532
:arg ignore_unavailable: Whether specified concrete indices
@@ -659,7 +665,7 @@ def delete_by_query(self, index, body, doc_type=None, params=None, headers=None)
659
665
given in the query string
660
666
:arg expand_wildcards: Whether to expand wildcard expression to
661
667
concrete indices that are open, closed or both. Valid choices: open,
662
- closed, none, all Default: open
668
+ closed, hidden, none, all Default: open
663
669
:arg from_: Starting offset (default: 0)
664
670
:arg ignore_unavailable: Whether specified concrete indices
665
671
should be ignored when unavailable (missing or closed)
@@ -686,8 +692,8 @@ def delete_by_query(self, index, body, doc_type=None, params=None, headers=None)
686
692
query_then_fetch, dfs_query_then_fetch
687
693
:arg size: Deprecated, please use `max_docs` instead
688
694
:arg slices: The number of slices this task should be divided
689
- into. Defaults to 1 meaning the task isn't sliced into subtasks.
690
- Default: 1
695
+ into. Defaults to 1, meaning the task isn't sliced into subtasks. Can be
696
+ set to `auto`. Default: 1
691
697
:arg sort: A comma-separated list of <field>:<direction> pairs
692
698
:arg stats: Specific 'tag' of the request for logging and
693
699
statistical purposes
@@ -940,7 +946,7 @@ def field_caps(self, index=None, params=None, headers=None):
940
946
string or when no indices have been specified)
941
947
:arg expand_wildcards: Whether to expand wildcard expression to
942
948
concrete indices that are open, closed or both. Valid choices: open,
943
- closed, none, all Default: open
949
+ closed, hidden, none, all Default: open
944
950
:arg fields: A comma-separated list of field names
945
951
:arg ignore_unavailable: Whether specified concrete indices
946
952
should be ignored when unavailable (missing or closed)
@@ -1150,8 +1156,8 @@ def msearch(self, body, index=None, doc_type=None, params=None, headers=None):
1150
1156
the number of shards the search request expands to exceeds the
1151
1157
threshold. This filter roundtrip can limit the number of shards
1152
1158
significantly if for instance a shard can not match any documents based
1153
- on it's rewrite method ie. if date filters are mandatory to match but
1154
- the shard bounds and the query are disjoint. Default: 128
1159
+ on its rewrite method ie. if date filters are mandatory to match but the
1160
+ shard bounds and the query are disjoint.
1155
1161
:arg rest_total_hits_as_int: Indicates whether hits.total should
1156
1162
be rendered as an integer or an object in the rest search response
1157
1163
:arg search_type: Search operation type Valid choices:
@@ -1325,7 +1331,7 @@ def rank_eval(self, body, index=None, params=None, headers=None):
1325
1331
string or when no indices have been specified)
1326
1332
:arg expand_wildcards: Whether to expand wildcard expression to
1327
1333
concrete indices that are open, closed or both. Valid choices: open,
1328
- closed, none, all Default: open
1334
+ closed, hidden, none, all Default: open
1329
1335
:arg ignore_unavailable: Whether specified concrete indices
1330
1336
should be ignored when unavailable (missing or closed)
1331
1337
:arg search_type: Search operation type Valid choices:
@@ -1369,8 +1375,8 @@ def reindex(self, body, params=None, headers=None):
1369
1375
:arg scroll: Control how long to keep the search context alive
1370
1376
Default: 5m
1371
1377
:arg slices: The number of slices this task should be divided
1372
- into. Defaults to 1 meaning the task isn't sliced into subtasks.
1373
- Default: 1
1378
+ into. Defaults to 1, meaning the task isn't sliced into subtasks. Can be
1379
+ set to `auto`. Default: 1
1374
1380
:arg timeout: Time each individual bulk request should wait for
1375
1381
shards that are unavailable. Default: 1m
1376
1382
:arg wait_for_active_shards: Sets the number of shard copies
@@ -1551,7 +1557,7 @@ def search(self, body=None, index=None, doc_type=None, params=None, headers=None
1551
1557
as the docvalue representation of a field for each hit
1552
1558
:arg expand_wildcards: Whether to expand wildcard expression to
1553
1559
concrete indices that are open, closed or both. Valid choices: open,
1554
- closed, none, all Default: open
1560
+ closed, hidden, none, all Default: open
1555
1561
:arg explain: Specify whether to return detailed information
1556
1562
about score computation as part of a hit
1557
1563
:arg from_: Starting offset (default: 0)
@@ -1570,8 +1576,8 @@ def search(self, body=None, index=None, doc_type=None, params=None, headers=None
1570
1576
the number of shards the search request expands to exceeds the
1571
1577
threshold. This filter roundtrip can limit the number of shards
1572
1578
significantly if for instance a shard can not match any documents based
1573
- on it's rewrite method ie. if date filters are mandatory to match but
1574
- the shard bounds and the query are disjoint. Default: 128
1579
+ on its rewrite method ie. if date filters are mandatory to match but the
1580
+ shard bounds and the query are disjoint.
1575
1581
:arg preference: Specify the node or shard the operation should
1576
1582
be performed on (default: random)
1577
1583
:arg q: Query in the Lucene query string syntax
@@ -1644,7 +1650,7 @@ def search_shards(self, index=None, params=None, headers=None):
1644
1650
string or when no indices have been specified)
1645
1651
:arg expand_wildcards: Whether to expand wildcard expression to
1646
1652
concrete indices that are open, closed or both. Valid choices: open,
1647
- closed, none, all Default: open
1653
+ closed, hidden, none, all Default: open
1648
1654
:arg ignore_unavailable: Whether specified concrete indices
1649
1655
should be ignored when unavailable (missing or closed)
1650
1656
:arg local: Return local information, do not retrieve the state
@@ -1692,7 +1698,7 @@ def search_template(
1692
1698
execution Default: true
1693
1699
:arg expand_wildcards: Whether to expand wildcard expression to
1694
1700
concrete indices that are open, closed or both. Valid choices: open,
1695
- closed, none, all Default: open
1701
+ closed, hidden, none, all Default: open
1696
1702
:arg explain: Specify whether to return detailed information
1697
1703
about score computation as part of a hit
1698
1704
:arg ignore_throttled: Whether specified concrete, expanded or
@@ -1921,7 +1927,7 @@ def update_by_query(
1921
1927
given in the query string
1922
1928
:arg expand_wildcards: Whether to expand wildcard expression to
1923
1929
concrete indices that are open, closed or both. Valid choices: open,
1924
- closed, none, all Default: open
1930
+ closed, hidden, none, all Default: open
1925
1931
:arg from_: Starting offset (default: 0)
1926
1932
:arg ignore_unavailable: Whether specified concrete indices
1927
1933
should be ignored when unavailable (missing or closed)
@@ -1950,8 +1956,8 @@ def update_by_query(
1950
1956
query_then_fetch, dfs_query_then_fetch
1951
1957
:arg size: Deprecated, please use `max_docs` instead
1952
1958
:arg slices: The number of slices this task should be divided
1953
- into. Defaults to 1 meaning the task isn't sliced into subtasks.
1954
- Default: 1
1959
+ into. Defaults to 1, meaning the task isn't sliced into subtasks. Can be
1960
+ set to `auto`. Default: 1
1955
1961
:arg sort: A comma-separated list of <field>:<direction> pairs
1956
1962
:arg stats: Specific 'tag' of the request for logging and
1957
1963
statistical purposes
0 commit comments