Skip to content

Commit 6acc5ac

Browse files
committed
[API] Adds require_data_stream boolean parameter to bulk and index
1 parent 074a8eb commit 6acc5ac

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

elasticsearch-api/lib/elasticsearch/api/actions/bulk.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ module Actions
3434
# @option arguments [List] :_source_includes Default list of fields to extract and return from the _source field, can be overridden on each sub-request
3535
# @option arguments [String] :pipeline The pipeline id to preprocess incoming documents with
3636
# @option arguments [Boolean] :require_alias Sets require_alias for all incoming documents. Defaults to unset (false)
37+
# @option arguments [Boolean] :require_data_stream When true, requires the destination to be a data stream (existing or to-be-created). Default is false
3738
# @option arguments [Boolean] :list_executed_pipelines Sets list_executed_pipelines for all incoming documents. Defaults to unset (false)
3839
# @option arguments [Hash] :headers Custom HTTP headers
3940
# @option arguments [String|Array] :body The operation definition and data (action-data pairs), separated by newlines. Array of Strings, Header/Data pairs,

elasticsearch-api/lib/elasticsearch/api/actions/index.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ module Actions
3636
# @option arguments [Number] :if_primary_term only perform the index operation if the last operation that has changed the document has the specified primary term
3737
# @option arguments [String] :pipeline The pipeline id to preprocess incoming documents with
3838
# @option arguments [Boolean] :require_alias When true, requires destination to be an alias. Default is false
39+
# @option arguments [Boolean] :require_data_stream When true, requires the destination to be a data stream (existing or to-be-created). Default is false
3940
# @option arguments [Hash] :headers Custom HTTP headers
4041
# @option arguments [Hash] :body The document (*Required*)
4142
#

0 commit comments

Comments
 (0)