Skip to content

Commit 25a89d1

Browse files
authored
Fix documentation examples: missing json format, default client uses SSL (#222)
* Correct documentation to match `http::transport::DEFAULT_ADDRESS` * add missing `json` format to cat index query
1 parent 89bedee commit 25a89d1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ Build a transport to make API requests to Elasticsearch using the `TransportBuil
9494
which allows setting of proxies, authentication schemes, certificate validation, and
9595
other transport related settings.
9696

97-
To create a client to make API calls to Elasticsearch running on `http://localhost:9200`
97+
To create a client to make API calls to Elasticsearch running on `https://localhost:9200`
9898

9999
```rust,no_run
100100
use elasticsearch::Elasticsearch;

docs/overview.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ The Elasticsearch Rust client is forward compatible; meaning that the client sup
3030
[discrete]
3131
=== Create a client
3232

33-
To create a client to make API calls to Elasticsearch running on `\http://localhost:9200`
33+
To create a client to make API calls to Elasticsearch running on `\https://localhost:9200`
3434

3535
[source,rust]
3636
----
@@ -87,4 +87,4 @@ for hit in response_body["hits"]["hits"].as_array().unwrap() {
8787
// print the source document
8888
println!("{:?}", hit["_source"]);
8989
}
90-
----
90+
----

elasticsearch/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
//!
109109
//! ## Create a client
110110
//!
111-
//! To create a client to make API calls to Elasticsearch running on `http://localhost:9200`
111+
//! To create a client to make API calls to Elasticsearch running on `https://localhost:9200`
112112
//!
113113
//! ```rust,no_run
114114
//! # use elasticsearch::Elasticsearch;

0 commit comments

Comments
 (0)