Skip to content

Commit ce304c9

Browse files
authored
Recommend stack Elasticsearch Python client (#242)
1 parent 6ffa349 commit ce304c9

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

serverless/pages/clients-python-getting-started.asciidoc

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,27 @@
11
[[elasticsearch-python-client-getting-started]]
2-
= Get started with the serverless Python client
2+
= Get started with the Elasticsearch Python client
33

44
// :description: Set up and use the Python client for {es3}.
55
// :keywords: serverless, elasticsearch, python, how to
66

7+
This page guides you through the installation process of the Python
8+
client, shows you how to initialize the client, and how to perform basic
9+
{es} operations with it.
10+
11+
See the
12+
https://www.elastic.co/guide/en/elasticsearch/client/python-api/current/index.html[Python
13+
client] documentation for more detailed usage instructions.
14+
715
[NOTE]
816
====
9-
This client is for use with {es-serverless} only. See also the https://www.elastic.co/guide/en/elasticsearch/client/index.html[{es} clients].
17+
The same client is used for {es3}, on-premise and managed Elasticsearch. Some API endpoints are however not available in {es3}.
1018
====
1119

12-
This page guides you through the installation process of the Python
13-
client for {es3}, shows you how to initialize the client, and how to perform basic
14-
{es} operations with it.
15-
1620
[discrete]
1721
[[elasticsearch-python-client-getting-started-requirements]]
1822
== Requirements
1923

20-
* Python 3.7 or higher
24+
* Python 3.9 or higher
2125
* https://pip.pypa.io/en/stable/[`pip`]
2226

2327
[discrete]
@@ -39,7 +43,7 @@ commands:
3943

4044
[source,bash]
4145
----
42-
python -m pip install elasticsearch-serverless
46+
python -m pip install elasticsearch
4347
----
4448

4549
[discrete]
@@ -50,7 +54,7 @@ Initialize the client using your API key and {es} endpoint:
5054

5155
[source,python]
5256
----
53-
from elasticsearch_serverless import Elasticsearch
57+
from elasticsearch import Elasticsearch
5458
5559
client = Elasticsearch(
5660
"https://...", # Your project's Elasticsearch endpoint

0 commit comments

Comments
 (0)