Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,9 @@ The supported *request specific options* are:
requestTimeout: number, // client default
maxRetries: number, // default `5`
asStream: boolean, // default `false`
headers: object // default `null`
compression: string, // default `false`
headers: object, // default `null`
querystring: object // default `null`
}
```

Expand Down
1 change: 1 addition & 0 deletions api/api/bulk.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ function buildBulk (opts) {
maxRetries: options.maxRetries || null,
asStream: options.asStream || false,
headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false,
warnings
}
Expand Down
1 change: 1 addition & 0 deletions api/api/cat.aliases.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ function buildCatAliases (opts) {
maxRetries: options.maxRetries || null,
asStream: options.asStream || false,
headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false,
warnings
}
Expand Down
1 change: 1 addition & 0 deletions api/api/cat.allocation.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ function buildCatAllocation (opts) {
maxRetries: options.maxRetries || null,
asStream: options.asStream || false,
headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false,
warnings
}
Expand Down
1 change: 1 addition & 0 deletions api/api/cat.count.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ function buildCatCount (opts) {
maxRetries: options.maxRetries || null,
asStream: options.asStream || false,
headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false,
warnings
}
Expand Down
1 change: 1 addition & 0 deletions api/api/cat.fielddata.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ function buildCatFielddata (opts) {
maxRetries: options.maxRetries || null,
asStream: options.asStream || false,
headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false,
warnings
}
Expand Down
1 change: 1 addition & 0 deletions api/api/cat.health.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ function buildCatHealth (opts) {
maxRetries: options.maxRetries || null,
asStream: options.asStream || false,
headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false,
warnings
}
Expand Down
1 change: 1 addition & 0 deletions api/api/cat.help.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ function buildCatHelp (opts) {
maxRetries: options.maxRetries || null,
asStream: options.asStream || false,
headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false,
warnings
}
Expand Down
1 change: 1 addition & 0 deletions api/api/cat.indices.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ function buildCatIndices (opts) {
maxRetries: options.maxRetries || null,
asStream: options.asStream || false,
headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false,
warnings
}
Expand Down
1 change: 1 addition & 0 deletions api/api/cat.master.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ function buildCatMaster (opts) {
maxRetries: options.maxRetries || null,
asStream: options.asStream || false,
headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false,
warnings
}
Expand Down
1 change: 1 addition & 0 deletions api/api/cat.nodeattrs.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ function buildCatNodeattrs (opts) {
maxRetries: options.maxRetries || null,
asStream: options.asStream || false,
headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false,
warnings
}
Expand Down
1 change: 1 addition & 0 deletions api/api/cat.nodes.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ function buildCatNodes (opts) {
maxRetries: options.maxRetries || null,
asStream: options.asStream || false,
headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false,
warnings
}
Expand Down
1 change: 1 addition & 0 deletions api/api/cat.pending_tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ function buildCatPendingTasks (opts) {
maxRetries: options.maxRetries || null,
asStream: options.asStream || false,
headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false,
warnings
}
Expand Down
1 change: 1 addition & 0 deletions api/api/cat.plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ function buildCatPlugins (opts) {
maxRetries: options.maxRetries || null,
asStream: options.asStream || false,
headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false,
warnings
}
Expand Down
1 change: 1 addition & 0 deletions api/api/cat.recovery.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ function buildCatRecovery (opts) {
maxRetries: options.maxRetries || null,
asStream: options.asStream || false,
headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false,
warnings
}
Expand Down
1 change: 1 addition & 0 deletions api/api/cat.repositories.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ function buildCatRepositories (opts) {
maxRetries: options.maxRetries || null,
asStream: options.asStream || false,
headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false,
warnings
}
Expand Down
1 change: 1 addition & 0 deletions api/api/cat.segments.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ function buildCatSegments (opts) {
maxRetries: options.maxRetries || null,
asStream: options.asStream || false,
headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false,
warnings
}
Expand Down
1 change: 1 addition & 0 deletions api/api/cat.shards.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ function buildCatShards (opts) {
maxRetries: options.maxRetries || null,
asStream: options.asStream || false,
headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false,
warnings
}
Expand Down
1 change: 1 addition & 0 deletions api/api/cat.snapshots.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ function buildCatSnapshots (opts) {
maxRetries: options.maxRetries || null,
asStream: options.asStream || false,
headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false,
warnings
}
Expand Down
1 change: 1 addition & 0 deletions api/api/cat.tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ function buildCatTasks (opts) {
maxRetries: options.maxRetries || null,
asStream: options.asStream || false,
headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false,
warnings
}
Expand Down
1 change: 1 addition & 0 deletions api/api/cat.templates.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ function buildCatTemplates (opts) {
maxRetries: options.maxRetries || null,
asStream: options.asStream || false,
headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false,
warnings
}
Expand Down
1 change: 1 addition & 0 deletions api/api/cat.thread_pool.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ function buildCatThreadPool (opts) {
maxRetries: options.maxRetries || null,
asStream: options.asStream || false,
headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false,
warnings
}
Expand Down
1 change: 1 addition & 0 deletions api/api/ccr.delete_auto_follow_pattern.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ function buildCcrDeleteAutoFollowPattern (opts) {
maxRetries: options.maxRetries || null,
asStream: options.asStream || false,
headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false,
warnings
}
Expand Down
1 change: 1 addition & 0 deletions api/api/ccr.follow.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ function buildCcrFollow (opts) {
maxRetries: options.maxRetries || null,
asStream: options.asStream || false,
headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false,
warnings
}
Expand Down
1 change: 1 addition & 0 deletions api/api/ccr.follow_info.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ function buildCcrFollowInfo (opts) {
maxRetries: options.maxRetries || null,
asStream: options.asStream || false,
headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false,
warnings
}
Expand Down
1 change: 1 addition & 0 deletions api/api/ccr.follow_stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ function buildCcrFollowStats (opts) {
maxRetries: options.maxRetries || null,
asStream: options.asStream || false,
headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false,
warnings
}
Expand Down
1 change: 1 addition & 0 deletions api/api/ccr.get_auto_follow_pattern.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ function buildCcrGetAutoFollowPattern (opts) {
maxRetries: options.maxRetries || null,
asStream: options.asStream || false,
headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false,
warnings
}
Expand Down
1 change: 1 addition & 0 deletions api/api/ccr.pause_follow.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ function buildCcrPauseFollow (opts) {
maxRetries: options.maxRetries || null,
asStream: options.asStream || false,
headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false,
warnings
}
Expand Down
1 change: 1 addition & 0 deletions api/api/ccr.put_auto_follow_pattern.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ function buildCcrPutAutoFollowPattern (opts) {
maxRetries: options.maxRetries || null,
asStream: options.asStream || false,
headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false,
warnings
}
Expand Down
1 change: 1 addition & 0 deletions api/api/ccr.resume_follow.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ function buildCcrResumeFollow (opts) {
maxRetries: options.maxRetries || null,
asStream: options.asStream || false,
headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false,
warnings
}
Expand Down
1 change: 1 addition & 0 deletions api/api/ccr.stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ function buildCcrStats (opts) {
maxRetries: options.maxRetries || null,
asStream: options.asStream || false,
headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false,
warnings
}
Expand Down
1 change: 1 addition & 0 deletions api/api/ccr.unfollow.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ function buildCcrUnfollow (opts) {
maxRetries: options.maxRetries || null,
asStream: options.asStream || false,
headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false,
warnings
}
Expand Down
1 change: 1 addition & 0 deletions api/api/clear_scroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ function buildClearScroll (opts) {
maxRetries: options.maxRetries || null,
asStream: options.asStream || false,
headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false,
warnings
}
Expand Down
1 change: 1 addition & 0 deletions api/api/cluster.allocation_explain.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ function buildClusterAllocationExplain (opts) {
maxRetries: options.maxRetries || null,
asStream: options.asStream || false,
headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false,
warnings
}
Expand Down
1 change: 1 addition & 0 deletions api/api/cluster.get_settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ function buildClusterGetSettings (opts) {
maxRetries: options.maxRetries || null,
asStream: options.asStream || false,
headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false,
warnings
}
Expand Down
1 change: 1 addition & 0 deletions api/api/cluster.health.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ function buildClusterHealth (opts) {
maxRetries: options.maxRetries || null,
asStream: options.asStream || false,
headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false,
warnings
}
Expand Down
1 change: 1 addition & 0 deletions api/api/cluster.pending_tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ function buildClusterPendingTasks (opts) {
maxRetries: options.maxRetries || null,
asStream: options.asStream || false,
headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false,
warnings
}
Expand Down
1 change: 1 addition & 0 deletions api/api/cluster.put_settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ function buildClusterPutSettings (opts) {
maxRetries: options.maxRetries || null,
asStream: options.asStream || false,
headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false,
warnings
}
Expand Down
1 change: 1 addition & 0 deletions api/api/cluster.remote_info.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ function buildClusterRemoteInfo (opts) {
maxRetries: options.maxRetries || null,
asStream: options.asStream || false,
headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false,
warnings
}
Expand Down
1 change: 1 addition & 0 deletions api/api/cluster.reroute.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ function buildClusterReroute (opts) {
maxRetries: options.maxRetries || null,
asStream: options.asStream || false,
headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false,
warnings
}
Expand Down
1 change: 1 addition & 0 deletions api/api/cluster.state.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ function buildClusterState (opts) {
maxRetries: options.maxRetries || null,
asStream: options.asStream || false,
headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false,
warnings
}
Expand Down
1 change: 1 addition & 0 deletions api/api/cluster.stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ function buildClusterStats (opts) {
maxRetries: options.maxRetries || null,
asStream: options.asStream || false,
headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false,
warnings
}
Expand Down
1 change: 1 addition & 0 deletions api/api/count.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ function buildCount (opts) {
maxRetries: options.maxRetries || null,
asStream: options.asStream || false,
headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false,
warnings
}
Expand Down
1 change: 1 addition & 0 deletions api/api/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ function buildCreate (opts) {
maxRetries: options.maxRetries || null,
asStream: options.asStream || false,
headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false,
warnings
}
Expand Down
1 change: 1 addition & 0 deletions api/api/delete.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ function buildDelete (opts) {
maxRetries: options.maxRetries || null,
asStream: options.asStream || false,
headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false,
warnings
}
Expand Down
1 change: 1 addition & 0 deletions api/api/delete_by_query.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ function buildDeleteByQuery (opts) {
maxRetries: options.maxRetries || null,
asStream: options.asStream || false,
headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false,
warnings
}
Expand Down
1 change: 1 addition & 0 deletions api/api/delete_by_query_rethrottle.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ function buildDeleteByQueryRethrottle (opts) {
maxRetries: options.maxRetries || null,
asStream: options.asStream || false,
headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false,
warnings
}
Expand Down
1 change: 1 addition & 0 deletions api/api/delete_script.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ function buildDeleteScript (opts) {
maxRetries: options.maxRetries || null,
asStream: options.asStream || false,
headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false,
warnings
}
Expand Down
1 change: 1 addition & 0 deletions api/api/exists.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ function buildExists (opts) {
maxRetries: options.maxRetries || null,
asStream: options.asStream || false,
headers: options.headers || null,
querystring: options.querystring || null,
compression: options.compression || false,
warnings
}
Expand Down
Loading