elastic / elasticsearch-rs

Official Elasticsearch Rust Client
https://www.elastic.co/guide/en/elasticsearch/client/rust-api/current/index.html
Apache License 2.0
695 stars 70 forks source link

fix Cat API example #212

Open jeinwag opened 1 year ago

jeinwag commented 1 year ago

The Cat API example in the overview of the docs does not work, since the Cat API returns plain text by default, so the deserialization into a JSON value will fail.

Explicitly telling the API to return JSON fixes this.

elasticmachine commented 1 year ago

Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually?

cla-checker-service[bot] commented 1 year ago

❌ Author of the following commits did not sign a Contributor Agreement: e16d0742af1808ae98b4a4c65f6fb1caee7791f2

Please, read and sign the above mentioned agreement if you want to contribute to this project