You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/reference/esql-query-builder.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
-
# ES|QL Query Builder
1
+
# ES|QL query builder
2
2
3
3
::::{warning}
4
4
This functionality is in technical preview and may be changed or removed in a future release. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features.
5
5
::::
6
6
7
-
The ES|QL Query Builder allows you to construct ES|QL queries using Python syntax. Consider the following example:
7
+
The ES|QL query builder allows you to construct ES|QL queries using Python syntax. Consider the following example:
Copy file name to clipboardExpand all lines: docs/reference/index.md
+19-17Lines changed: 19 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,10 +7,12 @@ mapped_pages:
7
7
8
8
# {{es}} Python client [overview]
9
9
10
-
This documentation covers the [official Python client for {{es}}](https://github.com/elastic/elasticsearch-py). The goal of the Python client is to provide common ground for all {{es}}-related code in Python. The client is designed to be unopinionated and extendable.
10
+
This documentation covers the [official Python client for {{es}}](https://github.com/elastic/elasticsearch-py). The Python client provides a comprehensive foundation for working with {{es}}in Python. The client is designed to be unopinionated and extensible.
11
11
12
12
## Example [_example]
13
13
14
+
Here's an example of basic Python client usage:
15
+
14
16
::::{tab-set}
15
17
16
18
:::{tab-item} Standard Python
@@ -26,8 +28,8 @@ def main():
26
28
27
29
resp = client.search(
28
30
index="my-index-000001",
29
-
from_="40",
30
-
size="20",
31
+
from_=40,
32
+
size=20,
31
33
query={
32
34
"term": {
33
35
"user.id": "kimchy"
@@ -51,8 +53,8 @@ async def main():
51
53
52
54
resp =await client.search(
53
55
index="my-index-000001",
54
-
from_="40",
55
-
size="20",
56
+
from_=40,
57
+
size=20,
56
58
query={
57
59
"term": {
58
60
"user.id": "kimchy"
@@ -67,19 +69,19 @@ async def main():
67
69
68
70
## Overview [_overview]
69
71
70
-
This package is composed of several modules:
72
+
The {{es}} Python client package consists of several modules: the core client, a set of bulk helper functions, an ES|QL query builder, and a DSL module.
71
73
72
-
### The actual client
74
+
### The core client
73
75
74
-
This module, sometimes also called the "low-level" client, implements the support for sending requests to {{es}} servers. The client provides access to the entire surface of the {{es}} API.
76
+
This module, also known as the low-level client, enables sending requests to {{es}} servers. The client provides access to the entire surface of the {{es}} API.
75
77
76
-
*[Getting Started guide](getting-started.md)
77
-
*[Ingest data with Python walkthrough](docs-content://manage-data/ingest/ingesting-data-from-applications/ingest-data-with-python-on-elasticsearch-service.md)
78
+
*[](getting-started.md)
79
+
*[Walkthrough: Ingest data with Python](docs-content://manage-data/ingest/ingesting-data-from-applications/ingest-data-with-python-on-elasticsearch-service.md)
The DSL module could be thought of as a "high-level" client for {{es}}. It allows applications to manipulate documents and queries using Python classes and objects instead of primitive types such as dictionaries and lists.
110
+
The DSL module can be thought of as a high-level client for {{es}}. It allows applications to manipulate documents and queries using Python classes and objects, instead of primitive types such as dictionaries and lists.
0 commit comments