Skip to content

Commit 36f60a8

Browse files
Update docs/troubleshooting.asciidoc
Co-authored-by: István Zoltán Szabó <szabosteve@gmail.com>
1 parent 81e9555 commit 36f60a8

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

docs/advanced-config.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Instead of strings, you can pass host information as an array of Hashes:
3232
Elasticsearch::Client.new(hosts: [ { host: 'myhost1', port: 8080 }, { host: 'myhost2', port: 8080 } ])
3333
```
3434

35-
NOTE: When specifying multiple hosts, you probably want to enable the
35+
NOTE: When specifying multiple hosts, you might want to enable the
3636
`retry_on_failure` or `retry_on_status` options to perform a failed request on
3737
another node (refer to <<retry-failures>>).
3838

docs/troubleshooting.asciidoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
The client provides several options for logging that can help when things go wrong. Check out the extensive documentation on <<logging>>.
55

6-
If you are having trouble sending a request to Elasticsearch with the client, we suggest enabling `tracing` on the client and testing the cUrl command that appears in your terminal:
6+
If you are having trouble sending a request to {es} with the client, we suggest enabling `tracing` on the client and testing the cURL command that appears in your terminal:
77

88
[source,rb]
99
----------------------------
@@ -13,11 +13,11 @@ curl -X GET -H 'x-elastic-client-meta: es=8.9.0,rb=3.2.2,t=8.2.1,fd=2.7.4,nh=0.3
1313
ransport-ruby/8.2.1 (RUBY_VERSION: 3.2.2; linux x86_64; Faraday v2.7.4), Content-Type: application/json' 'http://localhost:9200//?pretty'
1414
----------------------------
1515

16-
Testing the curl command can help find out if there's a connection issue or if the issue is in the client code.
16+
Testing the cURL command can help find out if there's a connection issue or if the issue is in the client code.
1717

1818
[discrete]
1919
=== Connection
20-
When working with multiple hosts, you probably want to enable the `retry_on_failure` or `retry_on_status` options to perform a failed request on another node (refer to <<retry-failures>>).
20+
When working with multiple hosts, you might want to enable the `retry_on_failure` or `retry_on_status` options to perform a failed request on another node (refer to <<retry-failures>>).
2121

2222
For optimal performance, use a HTTP library which supports persistent ("keep-alive") connections, such as https://github.com/toland/patron[patron] or https://github.com/typhoeus/typhoeus[Typhoeus]. Require the library (`require 'patron'`) in your code for Faraday 1.x or the adapter (`require 'faraday/patron'`) for Faraday 2.x, and it will be automatically used.
2323

@@ -26,4 +26,4 @@ For optimal performance, use a HTTP library which supports persistent ("keep-ali
2626

2727
If you need more help, you can hop on our https://discuss.elastic.co/[Elastic community forums] and get answers from the experts in the community, including people from Elastic.
2828

29-
If you find a bug, have feedback or find any other issue using the client, please https://github.com/elastic/elasticsearch-ruby/issues/new/choose[submit an issue] on GitHub.
29+
If you find a bug, have feedback, or find any other issue using the client, please https://github.com/elastic/elasticsearch-ruby/issues/new/choose[submit an issue] on GitHub.

0 commit comments

Comments
 (0)