remove use of extra query string params
This commit is contained in:
@ -56,7 +56,7 @@ var client = new elasticsearch.Client({
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
Send a HEAD request to `/?hello=elasticsearch` and allow up to 1 second for it to complete.
|
Send a HEAD request to `/` and allow up to 1 second for it to complete.
|
||||||
```js
|
```js
|
||||||
client.ping({
|
client.ping({
|
||||||
// ping usually has a 3000ms timeout
|
// ping usually has a 3000ms timeout
|
||||||
|
|||||||
@ -22,14 +22,11 @@ Almost all of the methods on the client accept two arguments:
|
|||||||
|
|
||||||
==== Ping the cluster
|
==== Ping the cluster
|
||||||
|
|
||||||
.Send a HEAD request to "/?hello=elasticsearch" and allow up to 30 seconds for it to complete.
|
.Send a HEAD request to "/" and allow up to 30 seconds for it to complete.
|
||||||
[source,js]
|
[source,js]
|
||||||
-----------------
|
-----------------
|
||||||
client.ping({
|
client.ping({
|
||||||
requestTimeout: 30000,
|
requestTimeout: 30000,
|
||||||
|
|
||||||
// undocumented params are appended to the query string
|
|
||||||
hello: "elasticsearch"
|
|
||||||
}, function (error) {
|
}, function (error) {
|
||||||
if (error) {
|
if (error) {
|
||||||
console.error('elasticsearch cluster is down!');
|
console.error('elasticsearch cluster is down!');
|
||||||
|
|||||||
Reference in New Issue
Block a user