feat: add support for querystring in options object (#779)

In very few cases, some API uses the same key for both url and query params, such as the bulk method.
The client is not designed to handle such cases since accepts both url and query keys in the same object, and the url parameter will always take precedence.
This pr fixes this edge case by adding a `querystring` key in the options object.

Fixes: https://github.com/elastic/elasticsearch-js/pull/778

```js
client.bulk({
  index: 'index',
  type: '_doc',
  body: [...]
}, {
  querystring: {
    type: '_doc'
  }
}, console.log)
```
This commit is contained in:
Tomas Della Vedova
2019-03-15 18:09:44 +01:00
committed by delvedor
parent 2debb7ba64
commit 796644fc0c
261 changed files with 380 additions and 6 deletions

View File

@ -128,7 +128,9 @@ The supported *request specific options* are:
requestTimeout: number, // client default requestTimeout: number, // client default
maxRetries: number, // default `5` maxRetries: number, // default `5`
asStream: boolean, // default `false` asStream: boolean, // default `false`
headers: object // default `null` compression: string, // default `false`
headers: object, // default `null`
querystring: object // default `null`
} }
``` ```

View File

@ -140,6 +140,7 @@ function buildBulk (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -122,6 +122,7 @@ function buildCatAliases (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -124,6 +124,7 @@ function buildCatAllocation (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -122,6 +122,7 @@ function buildCatCount (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -126,6 +126,7 @@ function buildCatFielddata (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -119,6 +119,7 @@ function buildCatHealth (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -106,6 +106,7 @@ function buildCatHelp (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -128,6 +128,7 @@ function buildCatIndices (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -117,6 +117,7 @@ function buildCatMaster (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -117,6 +117,7 @@ function buildCatNodeattrs (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -120,6 +120,7 @@ function buildCatNodes (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -117,6 +117,7 @@ function buildCatPendingTasks (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -117,6 +117,7 @@ function buildCatPlugins (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -122,6 +122,7 @@ function buildCatRecovery (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -117,6 +117,7 @@ function buildCatRepositories (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -119,6 +119,7 @@ function buildCatSegments (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -124,6 +124,7 @@ function buildCatShards (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -123,6 +123,7 @@ function buildCatSnapshots (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -122,6 +122,7 @@ function buildCatTasks (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -122,6 +122,7 @@ function buildCatTemplates (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -124,6 +124,7 @@ function buildCatThreadPool (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -98,6 +98,7 @@ function buildCcrDeleteAutoFollowPattern (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -106,6 +106,7 @@ function buildCcrFollow (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -90,6 +90,7 @@ function buildCcrFollowInfo (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -90,6 +90,7 @@ function buildCcrFollowStats (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -94,6 +94,7 @@ function buildCcrGetAutoFollowPattern (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -98,6 +98,7 @@ function buildCcrPauseFollow (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -105,6 +105,7 @@ function buildCcrPutAutoFollowPattern (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -99,6 +99,7 @@ function buildCcrResumeFollow (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -89,6 +89,7 @@ function buildCcrStats (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -98,6 +98,7 @@ function buildCcrUnfollow (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -100,6 +100,7 @@ function buildClearScroll (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -101,6 +101,7 @@ function buildClusterAllocationExplain (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -113,6 +113,7 @@ function buildClusterGetSettings (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -134,6 +134,7 @@ function buildClusterHealth (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -107,6 +107,7 @@ function buildClusterPendingTasks (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -111,6 +111,7 @@ function buildClusterPutSettings (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -102,6 +102,7 @@ function buildClusterRemoteInfo (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -110,6 +110,7 @@ function buildClusterReroute (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -141,6 +141,7 @@ function buildClusterState (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -112,6 +112,7 @@ function buildClusterStats (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -147,6 +147,7 @@ function buildCount (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -140,6 +140,7 @@ function buildCreate (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -151,6 +151,7 @@ function buildDelete (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -202,6 +202,7 @@ function buildDeleteByQuery (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -118,6 +118,7 @@ function buildDeleteByQueryRethrottle (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -114,6 +114,7 @@ function buildDeleteScript (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -147,6 +147,7 @@ function buildExists (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -157,6 +157,7 @@ function buildExistsSource (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -147,6 +147,7 @@ function buildExplain (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -118,6 +118,7 @@ function buildFieldCaps (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -153,6 +153,7 @@ function buildGet (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -112,6 +112,7 @@ function buildGetScript (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -144,6 +144,7 @@ function buildGetSource (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -98,6 +98,7 @@ function buildIlmDeleteLifecycle (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -99,6 +99,7 @@ function buildIlmExplainLifecycle (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -102,6 +102,7 @@ function buildIlmGetLifecycle (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -97,6 +97,7 @@ function buildIlmGetStatus (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -91,6 +91,7 @@ function buildIlmMoveToStep (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -91,6 +91,7 @@ function buildIlmPutLifecycle (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -98,6 +98,7 @@ function buildIlmRemovePolicy (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -98,6 +98,7 @@ function buildIlmRetry (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -97,6 +97,7 @@ function buildIlmStart (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -97,6 +97,7 @@ function buildIlmStop (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -155,6 +155,7 @@ function buildIndex (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -102,6 +102,7 @@ function buildIndicesAnalyze (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -126,6 +126,7 @@ function buildIndicesClearCache (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -123,6 +123,7 @@ function buildIndicesClose (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -115,6 +115,7 @@ function buildIndicesCreate (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -123,6 +123,7 @@ function buildIndicesDelete (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -133,6 +133,7 @@ function buildIndicesDeleteAlias (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -114,6 +114,7 @@ function buildIndicesDeleteTemplate (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -126,6 +126,7 @@ function buildIndicesExists (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -125,6 +125,7 @@ function buildIndicesExistsAlias (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -117,6 +117,7 @@ function buildIndicesExistsTemplate (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -135,6 +135,7 @@ function buildIndicesExistsType (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -121,6 +121,7 @@ function buildIndicesFlush (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -116,6 +116,7 @@ function buildIndicesFlushSynced (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -124,6 +124,7 @@ function buildIndicesForcemerge (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -119,6 +119,7 @@ function buildIndicesFreeze (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -132,6 +132,7 @@ function buildIndicesGet (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -123,6 +123,7 @@ function buildIndicesGetAlias (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -136,6 +136,7 @@ function buildIndicesGetFieldMapping (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -129,6 +129,7 @@ function buildIndicesGetMapping (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -132,6 +132,7 @@ function buildIndicesGetSettings (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -118,6 +118,7 @@ function buildIndicesGetTemplate (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -116,6 +116,7 @@ function buildIndicesGetUpgrade (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -126,6 +126,7 @@ function buildIndicesOpen (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -128,6 +128,7 @@ function buildIndicesPutAlias (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -138,6 +138,7 @@ function buildIndicesPutMapping (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -128,6 +128,7 @@ function buildIndicesPutSettings (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -125,6 +125,7 @@ function buildIndicesPutTemplate (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -112,6 +112,7 @@ function buildIndicesRecovery (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -116,6 +116,7 @@ function buildIndicesRefresh (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -131,6 +131,7 @@ function buildIndicesRollover (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -118,6 +118,7 @@ function buildIndicesSegments (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -118,6 +118,7 @@ function buildIndicesShardStores (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -130,6 +130,7 @@ function buildIndicesShrink (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

View File

@ -130,6 +130,7 @@ function buildIndicesSplit (opts) {
maxRetries: options.maxRetries || null, maxRetries: options.maxRetries || null,
asStream: options.asStream || false, asStream: options.asStream || false,
headers: options.headers || null, headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false, compression: options.compression || false,
warnings warnings
} }

Some files were not shown because too many files have changed in this diff Show More