Skip to content

Commit 63d3654

Browse files
committed
[API] Adds include_source_on_error parameter. True or false if to
include the document source in the error message in case of parsing errors. Defaults to true. Affected APIs: bulk, create, index, update
1 parent ea93e42 commit 63d3654

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-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
@@ -36,6 +36,7 @@ module Actions
3636
# @option arguments [Boolean] :require_alias Sets require_alias for all incoming documents. Defaults to unset (false)
3737
# @option arguments [Boolean] :require_data_stream When true, requires the destination to be a data stream (existing or to-be-created). Default is false
3838
# @option arguments [Boolean] :list_executed_pipelines Sets list_executed_pipelines for all incoming documents. Defaults to unset (false)
39+
# @option arguments [Boolean] :include_source_on_error True or false if to include the document source in the error message in case of parsing errors. Defaults to true.
3940
# @option arguments [Hash] :headers Custom HTTP headers
4041
# @option arguments [String|Array] :body The operation definition and data (action-data pairs), separated by newlines. Array of Strings, Header/Data pairs,
4142
# or the conveniency "combined" format can be passed, refer to Elasticsearch::API::Utils.__bulkify documentation.

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ module Actions
3434
# @option arguments [Number] :version Explicit version number for concurrency control
3535
# @option arguments [String] :version_type Specific version type (options: internal, external, external_gte)
3636
# @option arguments [String] :pipeline The pipeline id to preprocess incoming documents with
37+
# @option arguments [Boolean] :include_source_on_error True or false if to include the document source in the error message in case of parsing errors. Defaults to true.
3738
# @option arguments [Hash] :headers Custom HTTP headers
3839
# @option arguments [Hash] :body The document (*Required*)
3940
#

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ module Actions
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
3939
# @option arguments [Boolean] :require_data_stream When true, requires the destination to be a data stream (existing or to-be-created). Default is false
40+
# @option arguments [Boolean] :include_source_on_error True or false if to include the document source in the error message in case of parsing errors. Defaults to true.
4041
# @option arguments [Hash] :headers Custom HTTP headers
4142
# @option arguments [Hash] :body The document (*Required*)
4243
#

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ module Actions
3737
# @option arguments [Number] :if_seq_no only perform the update operation if the last operation that has changed the document has the specified sequence number
3838
# @option arguments [Number] :if_primary_term only perform the update operation if the last operation that has changed the document has the specified primary term
3939
# @option arguments [Boolean] :require_alias When true, requires destination is an alias. Default is false
40+
# @option arguments [Boolean] :include_source_on_error True or false if to include the document source in the error message in case of parsing errors. Defaults to true.
4041
# @option arguments [Hash] :headers Custom HTTP headers
4142
# @option arguments [Hash] :body The request definition requires either `script` or partial `doc` (*Required*)
4243
#

0 commit comments

Comments
 (0)