elasticsearch/docs/reference/mapping
Christoph Büscher 8067f01d48
Runtime fields to optionally ignore script errors (#92380)
Currently Elasticsearch always returns a shard failure once a runtime error arises from using a runtime field, the exception being script-less runtime fields. This also means that execution of the query for that shard stops, which is okay for development and exploration. In a production scenario, however, it is often desirable to ignore runtime errors and continue with the query execution.

This change adds a new a new on_script_error parameter to runtime field definitions similar to the already existing
parameter for index-time scripted fields. When `on_script_error` is set to `continue`, errors from script execution are effectively ignored. This means affected documents don't show up in query results, but also don't prevent other matches from the same shard. Runtime fields accessed through the fields API don't return values on errors, aggregations will ignore documents that throw errors.

Note that this change affects scripted runtime fields only, while leaving default behaviour untouched. Also, ignored errors are not reported back to users for now.

Relates to #72143
2022-12-23 09:29:12 +01:00
..
dynamic [DOCS] Warn only one date format is added to the field date formats when using dynamic_date_formats (#88915) 2022-08-11 10:43:53 +02:00
fields Docs: synthetic _source can't params._source (#91630) 2022-11-22 15:23:30 -05:00
params [DOCS] Clarify multi-field addition requires update by query for existing documents (#91541) 2022-11-18 12:38:04 +01:00
types The exception is inserted in a code block (#90325) 2022-12-21 17:22:35 +01:00
dynamic-mapping.asciidoc [DOCS] Clean up index template xrefs (#67264) 2021-01-11 12:38:09 -05:00
explicit-mapping.asciidoc [DOCS] Replace put with create or update in API names (#70330) 2021-03-15 14:49:44 -04:00
fields.asciidoc Support fetching _tier field value (#71379) 2021-04-08 11:41:52 -07:00
mapping-settings-limit.asciidoc Include runtime fields in total fields count (#89251) 2022-08-15 09:43:12 -04:00
params.asciidoc Add support for dots in field names for metrics usecases (#86166) 2022-05-17 16:34:39 +02:00
removal_of_types.asciidoc [DOCS] Fix double spaces (#71082) 2021-03-31 09:57:47 -04:00
runtime.asciidoc Runtime fields to optionally ignore script errors (#92380) 2022-12-23 09:29:12 +01:00
types.asciidoc [DOCS] Move completion type asciidoc (#89086) 2022-08-04 10:02:28 +02:00