Merge pull request #236 from pjcard/patch-1

Possible inconsistencies
This commit is contained in:
Spencer
2015-07-02 10:57:08 -07:00

View File

@ -22,14 +22,14 @@ Almost all of the methods on the client accept two arguments:
==== Ping the cluster
.Send a HEAD request to "/?hello=elasticsearch" and allow up to 1 second for it to complete.
.Send a HEAD request to "/?hello=elasticsearch" and allow up to 30 seconds for it to complete.
[source,js]
-----------------
client.ping({
requestTimeout: 30000,
// undocumented params are appended to the query string
hello: "elasticsearch!"
hello: "elasticsearch"
}, function (error) {
if (error) {
console.error('elasticsearch cluster is down!');