elasticsearch 8.11.0__tar.gz → 8.12.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/CONTRIBUTING.md +1 -1
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/PKG-INFO +7 -4
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/README.rst +5 -1
- elasticsearch-8.12.0/docs/sphinx/api/autoscaling.rst +9 -0
- elasticsearch-8.12.0/docs/sphinx/api/cat.rst +9 -0
- elasticsearch-8.12.0/docs/sphinx/api/ccr.rst +9 -0
- elasticsearch-8.12.0/docs/sphinx/api/cluster.rst +9 -0
- elasticsearch-8.12.0/docs/sphinx/api/dangling-indices.rst +9 -0
- elasticsearch-8.12.0/docs/sphinx/api/elasticsearch.rst +11 -0
- elasticsearch-8.12.0/docs/sphinx/api/enrich-policies.rst +9 -0
- elasticsearch-8.12.0/docs/sphinx/api/eql.rst +9 -0
- elasticsearch-8.12.0/docs/sphinx/api/esql.rst +9 -0
- elasticsearch-8.12.0/docs/sphinx/api/fleet.rst +9 -0
- elasticsearch-8.12.0/docs/sphinx/api/graph-explore.rst +9 -0
- elasticsearch-8.12.0/docs/sphinx/api/index-lifecycle-management.rst +9 -0
- elasticsearch-8.12.0/docs/sphinx/api/indices.rst +9 -0
- elasticsearch-8.12.0/docs/sphinx/api/inference.rst +9 -0
- elasticsearch-8.12.0/docs/sphinx/api/ingest-pipelines.rst +9 -0
- elasticsearch-8.12.0/docs/sphinx/api/license.rst +9 -0
- elasticsearch-8.12.0/docs/sphinx/api/logstash.rst +9 -0
- elasticsearch-8.12.0/docs/sphinx/api/migration.rst +9 -0
- elasticsearch-8.12.0/docs/sphinx/api/ml.rst +9 -0
- elasticsearch-8.12.0/docs/sphinx/api/monitoring.rst +9 -0
- elasticsearch-8.12.0/docs/sphinx/api/nodes.rst +9 -0
- elasticsearch-8.12.0/docs/sphinx/api/query-rules.rst +9 -0
- elasticsearch-8.12.0/docs/sphinx/api/rollup-indices.rst +9 -0
- elasticsearch-8.12.0/docs/sphinx/api/search-application.rst +9 -0
- elasticsearch-8.12.0/docs/sphinx/api/searchable-snapshots.rst +9 -0
- elasticsearch-8.12.0/docs/sphinx/api/security.rst +9 -0
- elasticsearch-8.12.0/docs/sphinx/api/shutdown.rst +9 -0
- elasticsearch-8.12.0/docs/sphinx/api/snapshot-lifecycle-management.rst +9 -0
- elasticsearch-8.12.0/docs/sphinx/api/snapshots.rst +9 -0
- elasticsearch-8.12.0/docs/sphinx/api/snapshottable-features.rst +9 -0
- elasticsearch-8.12.0/docs/sphinx/api/sql.rst +9 -0
- elasticsearch-8.12.0/docs/sphinx/api/synonyms.rst +9 -0
- elasticsearch-8.12.0/docs/sphinx/api/tasks.rst +9 -0
- elasticsearch-8.12.0/docs/sphinx/api/text-structure.rst +9 -0
- elasticsearch-8.12.0/docs/sphinx/api/tls-ssl.rst +9 -0
- elasticsearch-8.12.0/docs/sphinx/api/transforms.rst +9 -0
- elasticsearch-8.12.0/docs/sphinx/api/watcher.rst +9 -0
- elasticsearch-8.12.0/docs/sphinx/api/x-pack.rst +9 -0
- elasticsearch-8.12.0/docs/sphinx/api.rst +56 -0
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/docs/sphinx/async.rst +12 -14
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/docs/sphinx/exceptions.rst +1 -0
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/docs/sphinx/index.rst +19 -15
- elasticsearch-8.12.0/docs/sphinx/interactive.rst +107 -0
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/docs/sphinx/quickstart.rst +4 -2
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_async/client/__init__.py +493 -347
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_async/client/async_search.py +108 -72
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_async/client/autoscaling.py +13 -8
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_async/client/cat.py +26 -26
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_async/client/ccr.py +178 -117
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_async/client/cluster.py +56 -48
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_async/client/dangling_indices.py +3 -3
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_async/client/enrich.py +15 -13
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_async/client/eql.py +53 -36
- elasticsearch-8.12.0/elasticsearch/_async/client/esql.py +99 -0
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_async/client/features.py +2 -2
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_async/client/fleet.py +111 -71
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_async/client/graph.py +13 -11
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_async/client/ilm.py +33 -27
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_async/client/indices.py +326 -227
- elasticsearch-8.12.0/elasticsearch/_async/client/inference.py +212 -0
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_async/client/ingest.py +28 -24
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_async/client/license.py +15 -13
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_async/client/logstash.py +13 -10
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_async/client/migration.py +3 -3
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_async/client/ml.py +762 -538
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_async/client/monitoring.py +10 -5
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_async/client/nodes.py +13 -11
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_async/client/query_ruleset.py +12 -10
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_async/client/rollup.py +59 -46
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_async/client/search_application.py +23 -16
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_async/client/searchable_snapshots.py +23 -16
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_async/client/security.py +393 -287
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_async/client/shutdown.py +18 -14
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_async/client/slm.py +23 -21
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_async/client/snapshot.py +91 -65
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_async/client/sql.py +81 -58
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_async/client/ssl.py +1 -1
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_async/client/synonyms.py +23 -19
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_async/client/tasks.py +3 -3
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_async/client/text_structure.py +10 -5
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_async/client/transform.py +111 -75
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_async/client/watcher.py +77 -55
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_async/client/xpack.py +2 -2
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_async/helpers.py +1 -1
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_sync/client/__init__.py +493 -347
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_sync/client/async_search.py +108 -72
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_sync/client/autoscaling.py +13 -8
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_sync/client/cat.py +26 -26
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_sync/client/ccr.py +178 -117
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_sync/client/cluster.py +56 -48
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_sync/client/dangling_indices.py +3 -3
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_sync/client/enrich.py +15 -13
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_sync/client/eql.py +53 -36
- elasticsearch-8.12.0/elasticsearch/_sync/client/esql.py +99 -0
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_sync/client/features.py +2 -2
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_sync/client/fleet.py +111 -71
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_sync/client/graph.py +13 -11
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_sync/client/ilm.py +33 -27
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_sync/client/indices.py +326 -227
- elasticsearch-8.12.0/elasticsearch/_sync/client/inference.py +212 -0
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_sync/client/ingest.py +28 -24
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_sync/client/license.py +15 -13
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_sync/client/logstash.py +13 -10
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_sync/client/migration.py +3 -3
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_sync/client/ml.py +762 -538
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_sync/client/monitoring.py +10 -5
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_sync/client/nodes.py +13 -11
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_sync/client/query_ruleset.py +12 -10
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_sync/client/rollup.py +59 -46
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_sync/client/search_application.py +23 -16
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_sync/client/searchable_snapshots.py +23 -16
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_sync/client/security.py +393 -287
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_sync/client/shutdown.py +18 -14
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_sync/client/slm.py +23 -21
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_sync/client/snapshot.py +91 -65
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_sync/client/sql.py +81 -58
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_sync/client/ssl.py +1 -1
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_sync/client/synonyms.py +23 -19
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_sync/client/tasks.py +3 -3
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_sync/client/text_structure.py +10 -5
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_sync/client/transform.py +111 -75
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_sync/client/utils.py +34 -10
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_sync/client/watcher.py +77 -55
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_sync/client/xpack.py +2 -2
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_version.py +1 -1
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/client.py +2 -0
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/helpers/actions.py +1 -1
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch.egg-info/PKG-INFO +7 -4
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch.egg-info/SOURCES.txt +43 -0
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/setup.py +1 -2
- elasticsearch-8.11.0/docs/sphinx/api.rst +0 -241
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/CHANGELOG.md +0 -0
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/LICENSE +0 -0
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/MANIFEST.in +0 -0
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/NOTICE +0 -0
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/docs/sphinx/Makefile +0 -0
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/docs/sphinx/conf.py +0 -0
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/docs/sphinx/helpers.rst +0 -0
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/__init__.py +0 -0
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_async/__init__.py +0 -0
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_async/client/_base.py +0 -0
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_async/client/utils.py +0 -0
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_sync/__init__.py +0 -0
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_sync/client/_base.py +0 -0
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/_utils.py +0 -0
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/compat.py +0 -0
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/exceptions.py +0 -0
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/helpers/__init__.py +0 -0
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/helpers/errors.py +0 -0
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/py.typed +0 -0
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/serializer.py +0 -0
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch/transport.py +0 -0
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch.egg-info/dependency_links.txt +0 -0
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch.egg-info/not-zip-safe +0 -0
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch.egg-info/requires.txt +0 -0
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/elasticsearch.egg-info/top_level.txt +0 -0
- {elasticsearch-8.11.0 → elasticsearch-8.12.0}/setup.cfg +0 -0
|
@@ -13,7 +13,7 @@ before writing too much code.
|
|
|
13
13
|
## Running Elasticsearch locally
|
|
14
14
|
|
|
15
15
|
We've provided a script to start an Elasticsearch cluster of a certain version
|
|
16
|
-
found at `.
|
|
16
|
+
found at `.buildkite/run-elasticsearch.sh`.
|
|
17
17
|
|
|
18
18
|
There are several environment variables that control integration tests:
|
|
19
19
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: elasticsearch
|
|
3
|
-
Version: 8.
|
|
3
|
+
Version: 8.12.0
|
|
4
4
|
Summary: Python client for Elasticsearch
|
|
5
5
|
Home-page: https://github.com/elastic/elasticsearch-py
|
|
6
6
|
Author: Elastic Client Library Maintainers
|
|
@@ -15,7 +15,6 @@ Classifier: Intended Audience :: Developers
|
|
|
15
15
|
Classifier: Operating System :: OS Independent
|
|
16
16
|
Classifier: Programming Language :: Python
|
|
17
17
|
Classifier: Programming Language :: Python :: 3
|
|
18
|
-
Classifier: Programming Language :: Python :: 3.6
|
|
19
18
|
Classifier: Programming Language :: Python :: 3.7
|
|
20
19
|
Classifier: Programming Language :: Python :: 3.8
|
|
21
20
|
Classifier: Programming Language :: Python :: 3.9
|
|
@@ -24,7 +23,7 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
24
23
|
Classifier: Programming Language :: Python :: 3.12
|
|
25
24
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
26
25
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
27
|
-
Requires-Python: >=3.
|
|
26
|
+
Requires-Python: >=3.7
|
|
28
27
|
Description-Content-Type: text/x-rst
|
|
29
28
|
License-File: LICENSE
|
|
30
29
|
License-File: NOTICE
|
|
@@ -35,7 +34,6 @@ Provides-Extra: async
|
|
|
35
34
|
Requires-Dist: aiohttp<4,>=3; extra == "async"
|
|
36
35
|
|
|
37
36
|
|
|
38
|
-
|
|
39
37
|
Elasticsearch Python Client
|
|
40
38
|
===========================
|
|
41
39
|
|
|
@@ -75,6 +73,11 @@ Features
|
|
|
75
73
|
Installation
|
|
76
74
|
------------
|
|
77
75
|
|
|
76
|
+
`Download the latest version of Elasticsearch <https://www.elastic.co/downloads/elasticsearch>`_
|
|
77
|
+
or
|
|
78
|
+
`sign-up <https://cloud.elastic.co/registration?elektra=en-ess-sign-up-page>`_
|
|
79
|
+
for a free trial of Elastic Cloud.
|
|
80
|
+
|
|
78
81
|
Refer to the `Installation section <https://www.elastic.co/guide/en/elasticsearch/client/python-api/current/getting-started-python.html#_installation>`_
|
|
79
82
|
of the getting started documentation.
|
|
80
83
|
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
<img align="right" width="auto" height="auto" src="https://www.elastic.co/static-res/images/elastic-logo-200.png">
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
Elasticsearch Python Client
|
|
7
6
|
===========================
|
|
8
7
|
|
|
@@ -42,6 +41,11 @@ Features
|
|
|
42
41
|
Installation
|
|
43
42
|
------------
|
|
44
43
|
|
|
44
|
+
`Download the latest version of Elasticsearch <https://www.elastic.co/downloads/elasticsearch>`_
|
|
45
|
+
or
|
|
46
|
+
`sign-up <https://cloud.elastic.co/registration?elektra=en-ess-sign-up-page>`_
|
|
47
|
+
for a free trial of Elastic Cloud.
|
|
48
|
+
|
|
45
49
|
Refer to the `Installation section <https://www.elastic.co/guide/en/elasticsearch/client/python-api/current/getting-started-python.html#_installation>`_
|
|
46
50
|
of the getting started documentation.
|
|
47
51
|
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
.. _api:
|
|
2
|
+
|
|
3
|
+
Elasticsearch API Reference
|
|
4
|
+
===========================
|
|
5
|
+
|
|
6
|
+
All the API calls map the raw REST API as closely as possible, including the
|
|
7
|
+
distinction between required and optional arguments to the calls. Keyword
|
|
8
|
+
arguments are required for all calls.
|
|
9
|
+
|
|
10
|
+
.. note::
|
|
11
|
+
|
|
12
|
+
Some API parameters in Elasticsearch are reserved keywords in Python.
|
|
13
|
+
For example the ``from`` query parameter for pagination would be aliased as
|
|
14
|
+
``from_``.
|
|
15
|
+
|
|
16
|
+
.. toctree::
|
|
17
|
+
:maxdepth: 1
|
|
18
|
+
|
|
19
|
+
api/elasticsearch
|
|
20
|
+
api/autoscaling
|
|
21
|
+
api/cat
|
|
22
|
+
api/ccr
|
|
23
|
+
api/cluster
|
|
24
|
+
api/dangling-indices
|
|
25
|
+
api/enrich-policies
|
|
26
|
+
api/eql
|
|
27
|
+
api/esql
|
|
28
|
+
api/fleet
|
|
29
|
+
api/graph-explore
|
|
30
|
+
api/index-lifecycle-management
|
|
31
|
+
api/indices
|
|
32
|
+
api/inference
|
|
33
|
+
api/ingest-pipelines
|
|
34
|
+
api/license
|
|
35
|
+
api/logstash
|
|
36
|
+
api/migration
|
|
37
|
+
api/ml
|
|
38
|
+
api/monitoring
|
|
39
|
+
api/nodes
|
|
40
|
+
api/query-rules
|
|
41
|
+
api/rollup-indices
|
|
42
|
+
api/search-application
|
|
43
|
+
api/searchable-snapshots
|
|
44
|
+
api/security
|
|
45
|
+
api/shutdown
|
|
46
|
+
api/snapshot-lifecycle-management
|
|
47
|
+
api/snapshots
|
|
48
|
+
api/snapshottable-features
|
|
49
|
+
api/sql
|
|
50
|
+
api/synonyms
|
|
51
|
+
api/tls-ssl
|
|
52
|
+
api/tasks
|
|
53
|
+
api/text-structure
|
|
54
|
+
api/transforms
|
|
55
|
+
api/watcher
|
|
56
|
+
api/x-pack
|
|
@@ -2,23 +2,19 @@ Using Asyncio with Elasticsearch
|
|
|
2
2
|
================================
|
|
3
3
|
|
|
4
4
|
.. py:module:: elasticsearch
|
|
5
|
+
:no-index:
|
|
5
6
|
|
|
6
|
-
|
|
7
|
+
The ``elasticsearch`` package supports async/await with
|
|
7
8
|
`Asyncio <https://docs.python.org/3/library/asyncio.html>`_ and `Aiohttp <https://docs.aiohttp.org>`_.
|
|
8
9
|
You can either install ``aiohttp`` directly or use the ``[async]`` extra:
|
|
9
10
|
|
|
10
11
|
.. code-block:: bash
|
|
11
12
|
|
|
12
|
-
$ python -m pip install elasticsearch
|
|
13
|
+
$ python -m pip install elasticsearch aiohttp
|
|
13
14
|
|
|
14
15
|
# - OR -
|
|
15
16
|
|
|
16
|
-
$ python -m pip install elasticsearch[async]
|
|
17
|
-
|
|
18
|
-
.. note::
|
|
19
|
-
Async functionality is a new feature of this library in v7.8.0+ so
|
|
20
|
-
`please open an issue <https://github.com/elastic/elasticsearch-py/issues>`_
|
|
21
|
-
if you find an issue or have a question about async support.
|
|
17
|
+
$ python -m pip install elasticsearch[async]
|
|
22
18
|
|
|
23
19
|
Getting Started with Async
|
|
24
20
|
--------------------------
|
|
@@ -66,13 +62,13 @@ in the ``examples/fastapi-apm`` directory.
|
|
|
66
62
|
Frequently Asked Questions
|
|
67
63
|
--------------------------
|
|
68
64
|
|
|
69
|
-
|
|
70
|
-
|
|
65
|
+
ValueError when initializing ``AsyncElasticsearch``?
|
|
66
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
71
67
|
|
|
72
|
-
If when trying to use ``AsyncElasticsearch``
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
68
|
+
If when trying to use ``AsyncElasticsearch`` you receive ``ValueError: You must
|
|
69
|
+
have 'aiohttp' installed to use AiohttpHttpNode`` you should ensure that you
|
|
70
|
+
have ``aiohttp`` installed in your environment (check with ``$ python -m pip
|
|
71
|
+
freeze | grep aiohttp``). Otherwise, async support won't be available.
|
|
76
72
|
|
|
77
73
|
What about the ``elasticsearch-async`` package?
|
|
78
74
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
@@ -131,6 +127,7 @@ All async helpers that accept an iterator or generator also accept async iterato
|
|
|
131
127
|
and async generators.
|
|
132
128
|
|
|
133
129
|
.. py:module:: elasticsearch.helpers
|
|
130
|
+
:no-index:
|
|
134
131
|
|
|
135
132
|
Bulk and Streaming Bulk
|
|
136
133
|
~~~~~~~~~~~~~~~~~~~~~~~
|
|
@@ -220,6 +217,7 @@ API Reference
|
|
|
220
217
|
-------------
|
|
221
218
|
|
|
222
219
|
.. py:module:: elasticsearch
|
|
220
|
+
:no-index:
|
|
223
221
|
|
|
224
222
|
The API of :class:`~elasticsearch.AsyncElasticsearch` is nearly identical
|
|
225
223
|
to the API of :class:`~elasticsearch.Elasticsearch` with the exception that
|