Skip to content

Commit 9c39f37

Browse files
authored
Release 7.7.0a1
1 parent 7f07f1f commit 9c39f37

File tree

20 files changed

+689
-86
lines changed

20 files changed

+689
-86
lines changed

.ci/test-matrix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ELASTICSEARCH_VERSION:
2-
- 7.6-SNAPSHOT
2+
- 7.7-SNAPSHOT
33

44
TEST_SUITE:
55
- oss

Changelog.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,21 @@
33
Changelog
44
=========
55

6+
7.7.0a1 (2020-03-31)
7+
--------------------
8+
* Added support for ES 7.7 APIs (See `#1812`_)
9+
* Added ``ElasticsearchDeprecationWarning`` which is raised when a ``Warning``
10+
HTTP header is sent by Elasticsearch. (See `#1179`_)
11+
* Added support for serializing ``numpy`` and ``pandas``.
12+
data types to ``JSONSerializer``. (See `#1180`_)
13+
* Added ``certifi`` as a dependency so HTTPS connections work automatically.
14+
* Fixed duplicated parameters in some API docstrings (See `#1169`_, thanks to `Morten Hauberg <https://github.com/mortenhauberg>`_!)
15+
16+
.. _#1169: https://github.com/elastic/elasticsearch-py/pull/1169
17+
.. _#1179: https://github.com/elastic/elasticsearch-py/pull/1179
18+
.. _#1180: https://github.com/elastic/elasticsearch-py/pull/1180
19+
.. _#1812: https://github.com/elastic/elasticsearch-py/pull/1182
20+
621
7.6.0 (2020-03-19)
722
------------------
823
* Added support for ES 7.6 APIs

docs/xpack.rst

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,44 @@ provides general info about the installed X-Pack.
2121
:members:
2222

2323

24+
Async Search APIs
25+
-----------------
26+
27+
`Async Search API <https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html>`_
28+
lets you asynchronously execute a search request, monitor its progress,
29+
and retrieve partial results as they become available.
30+
31+
.. py:module:: elasticsearch.client.async_search
32+
33+
.. autoclass:: AsyncSearchClient
34+
:members:
35+
36+
37+
Autoscaling APIs
38+
-----------------
39+
40+
`Autoscaling API <https://www.elastic.co/guide/en/elasticsearch/reference/master/autoscaling-apis.html>`_
41+
gets the current autoscaling decision based on the configured autoscaling policy.
42+
43+
.. py:module:: elasticsearch.client.autoscaling
44+
45+
.. autoclass:: AutoscalingClient
46+
:members:
47+
48+
49+
EQL APIs
50+
--------
51+
52+
`EQL API <https://www.elastic.co/guide/en/elasticsearch/reference/current/eql.html>`_
53+
allows querying with Event Query Language (EQL) to search logs and events and match
54+
them with shared properties.
55+
56+
.. py:module:: elasticsearch.client.eql
57+
58+
.. autoclass:: EqlClient
59+
:members:
60+
61+
2462
Graph Explore APIs
2563
------------------
2664

elasticsearch/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# flake8: noqa
22
from __future__ import absolute_import
33

4-
VERSION = (7, 6, 0)
4+
VERSION = (7, 7, 0)
55
__version__ = VERSION
6-
__versionstr__ = ".".join(map(str, VERSION))
6+
__versionstr__ = "7.7.0a1"
77

88
import logging
99
import warnings

elasticsearch/client/__init__.py

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,12 @@
1717
from .utils import query_params, _make_path, SKIP_IN_PATH, _bulk_body
1818

1919
# xpack APIs
20+
from .async_search import AsyncSearchClient
21+
from .autoscaling import AutoscalingClient
2022
from .ccr import CcrClient
2123
from .data_frame import Data_FrameClient
2224
from .deprecation import DeprecationClient
25+
from .eql import EqlClient
2326
from .graph import GraphClient
2427
from .ilm import IlmClient
2528
from .license import LicenseClient
@@ -237,9 +240,12 @@ class as kwargs, or a string in the format of ``host[:port]`` which will be
237240
self.tasks = TasksClient(self)
238241

239242
self.xpack = XPackClient(self)
243+
self.async_search = AsyncSearchClient(self)
244+
self.autoscaling = AutoscalingClient(self)
240245
self.ccr = CcrClient(self)
241246
self.data_frame = Data_FrameClient(self)
242247
self.deprecation = DeprecationClient(self)
248+
self.eql = EqlClient(self)
243249
self.graph = GraphClient(self)
244250
self.ilm = IlmClient(self)
245251
self.indices = IndicesClient(self)
@@ -520,7 +526,7 @@ def count(self, body=None, index=None, doc_type=None, params=None, headers=None)
520526
given in the query string
521527
:arg expand_wildcards: Whether to expand wildcard expression to
522528
concrete indices that are open, closed or both. Valid choices: open,
523-
closed, none, all Default: open
529+
closed, hidden, none, all Default: open
524530
:arg ignore_throttled: Whether specified concrete, expanded or
525531
aliased indices should be ignored when throttled
526532
: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)
659665
given in the query string
660666
:arg expand_wildcards: Whether to expand wildcard expression to
661667
concrete indices that are open, closed or both. Valid choices: open,
662-
closed, none, all Default: open
668+
closed, hidden, none, all Default: open
663669
:arg from_: Starting offset (default: 0)
664670
:arg ignore_unavailable: Whether specified concrete indices
665671
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)
686692
query_then_fetch, dfs_query_then_fetch
687693
:arg size: Deprecated, please use `max_docs` instead
688694
: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
691697
:arg sort: A comma-separated list of <field>:<direction> pairs
692698
:arg stats: Specific 'tag' of the request for logging and
693699
statistical purposes
@@ -940,7 +946,7 @@ def field_caps(self, index=None, params=None, headers=None):
940946
string or when no indices have been specified)
941947
:arg expand_wildcards: Whether to expand wildcard expression to
942948
concrete indices that are open, closed or both. Valid choices: open,
943-
closed, none, all Default: open
949+
closed, hidden, none, all Default: open
944950
:arg fields: A comma-separated list of field names
945951
:arg ignore_unavailable: Whether specified concrete indices
946952
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):
11501156
the number of shards the search request expands to exceeds the
11511157
threshold. This filter roundtrip can limit the number of shards
11521158
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.
11551161
:arg rest_total_hits_as_int: Indicates whether hits.total should
11561162
be rendered as an integer or an object in the rest search response
11571163
:arg search_type: Search operation type Valid choices:
@@ -1325,7 +1331,7 @@ def rank_eval(self, body, index=None, params=None, headers=None):
13251331
string or when no indices have been specified)
13261332
:arg expand_wildcards: Whether to expand wildcard expression to
13271333
concrete indices that are open, closed or both. Valid choices: open,
1328-
closed, none, all Default: open
1334+
closed, hidden, none, all Default: open
13291335
:arg ignore_unavailable: Whether specified concrete indices
13301336
should be ignored when unavailable (missing or closed)
13311337
:arg search_type: Search operation type Valid choices:
@@ -1369,8 +1375,8 @@ def reindex(self, body, params=None, headers=None):
13691375
:arg scroll: Control how long to keep the search context alive
13701376
Default: 5m
13711377
: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
13741380
:arg timeout: Time each individual bulk request should wait for
13751381
shards that are unavailable. Default: 1m
13761382
: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
15511557
as the docvalue representation of a field for each hit
15521558
:arg expand_wildcards: Whether to expand wildcard expression to
15531559
concrete indices that are open, closed or both. Valid choices: open,
1554-
closed, none, all Default: open
1560+
closed, hidden, none, all Default: open
15551561
:arg explain: Specify whether to return detailed information
15561562
about score computation as part of a hit
15571563
:arg from_: Starting offset (default: 0)
@@ -1570,8 +1576,8 @@ def search(self, body=None, index=None, doc_type=None, params=None, headers=None
15701576
the number of shards the search request expands to exceeds the
15711577
threshold. This filter roundtrip can limit the number of shards
15721578
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.
15751581
:arg preference: Specify the node or shard the operation should
15761582
be performed on (default: random)
15771583
:arg q: Query in the Lucene query string syntax
@@ -1644,7 +1650,7 @@ def search_shards(self, index=None, params=None, headers=None):
16441650
string or when no indices have been specified)
16451651
:arg expand_wildcards: Whether to expand wildcard expression to
16461652
concrete indices that are open, closed or both. Valid choices: open,
1647-
closed, none, all Default: open
1653+
closed, hidden, none, all Default: open
16481654
:arg ignore_unavailable: Whether specified concrete indices
16491655
should be ignored when unavailable (missing or closed)
16501656
:arg local: Return local information, do not retrieve the state
@@ -1692,7 +1698,7 @@ def search_template(
16921698
execution Default: true
16931699
:arg expand_wildcards: Whether to expand wildcard expression to
16941700
concrete indices that are open, closed or both. Valid choices: open,
1695-
closed, none, all Default: open
1701+
closed, hidden, none, all Default: open
16961702
:arg explain: Specify whether to return detailed information
16971703
about score computation as part of a hit
16981704
:arg ignore_throttled: Whether specified concrete, expanded or
@@ -1921,7 +1927,7 @@ def update_by_query(
19211927
given in the query string
19221928
:arg expand_wildcards: Whether to expand wildcard expression to
19231929
concrete indices that are open, closed or both. Valid choices: open,
1924-
closed, none, all Default: open
1930+
closed, hidden, none, all Default: open
19251931
:arg from_: Starting offset (default: 0)
19261932
:arg ignore_unavailable: Whether specified concrete indices
19271933
should be ignored when unavailable (missing or closed)
@@ -1950,8 +1956,8 @@ def update_by_query(
19501956
query_then_fetch, dfs_query_then_fetch
19511957
:arg size: Deprecated, please use `max_docs` instead
19521958
: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
19551961
:arg sort: A comma-separated list of <field>:<direction> pairs
19561962
:arg stats: Specific 'tag' of the request for logging and
19571963
statistical purposes

0 commit comments

Comments
 (0)