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
This is the official Rust client for {es}. Full documentation is hosted on
5
-
https://docs.rs/elasticsearch[docs.rs] -- this page provides _only_ an overview.
8
+
# Elasticsearch Rust Client [overview]
9
+
10
+
This is the official Rust client for {{es}}. Full documentation is hosted on [docs.rs](https://docs.rs/elasticsearch) — this page provides *only* an overview.
* Fluent builders for all {{es}} REST API endpoints
18
21
* Persistent keep-alive connections
19
22
* TLS support with system or custom certificates
20
23
* Proxy support with authentication
21
24
* Async support with Tokio
22
25
23
26
24
-
[discrete]
25
-
=== {es} Version Compatibility
27
+
## {{es}} Version compatibility [_es_version_compatibility]
26
28
27
29
The Elasticsearch Rust client is forward compatible; meaning that the client supports communicating with greater minor versions of Elasticsearch. Elasticsearch language clients are also backwards compatible with lesser supported minor Elasticsearch versions.
28
30
29
31
30
-
[discrete]
31
-
=== Create a client
32
+
## Create a client [_create_a_client]
32
33
33
34
To create a client to make API calls to Elasticsearch running on `\https://localhost:9200`
34
35
35
-
[source,rust]
36
-
----
36
+
```rust
37
37
letclient=Elasticsearch::default();
38
-
----
38
+
```
39
39
40
-
Alternatively, you can create a client to make API calls against Elasticsearch running on a
41
-
specific `url::Url`
40
+
Alternatively, you can create a client to make API calls against Elasticsearch running on a specific `url::Url`
If you're running against an Elasticsearch deployment in https://www.elastic.co/cloud/[Elastic Cloud],
50
-
a client can be created using a https://www.elastic.co/guide/en/cloud/current/ec-cloud-id.html[Cloud ID]
51
-
and credentials retrieved from the Cloud web console
47
+
If you’re running against an Elasticsearch deployment in [Elastic Cloud](https://www.elastic.co/cloud/), a client can be created using a [Cloud ID](docs-content://deploy-manage/deploy/elastic-cloud/find-cloud-id.md) and credentials retrieved from the Cloud web console
0 commit comments