Skip to content

Commit bcfdc95

Browse files
Add terminate ingest processor (elastic#3003)
1 parent e31f5a4 commit bcfdc95

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

specification/_doc_ids/table.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,7 @@ stop-transform,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/
596596
supported-flags,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/query-dsl-simple-query-string-query.html#supported-flags
597597
tasks,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/tasks.html
598598
templating-role-query,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/field-and-document-access-control.html#templating-role-query
599+
terminate-processor,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/terminate-processor.html
599600
time-value,https://github.com/elastic/elasticsearch/blob/{branch}/libs/core/src/main/java/org/elasticsearch/core/TimeValue.java
600601
trim-processor,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/trim-processor.html
601602
unfreeze-index-api,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/unfreeze-index-api.html

specification/ingest/_types/Processors.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,12 @@ export class ProcessorContainer {
230230
* @doc_id split-processor
231231
*/
232232
split?: SplitProcessor
233+
/**
234+
* Terminates the current ingest pipeline, causing no further processors to be run.
235+
* This will normally be executed conditionally, using the `if` option.
236+
* @doc_id terminate-processor
237+
*/
238+
terminate?: TerminateProcessor
233239
/**
234240
* Trims whitespace from a field.
235241
* If the field is an array of strings, all members of the array will be trimmed.
@@ -1279,6 +1285,8 @@ export class SplitProcessor extends ProcessorBase {
12791285
target_field?: Field
12801286
}
12811287

1288+
export class TerminateProcessor extends ProcessorBase {}
1289+
12821290
export class TrimProcessor extends ProcessorBase {
12831291
/**
12841292
* The string-valued field to trim whitespace from.

0 commit comments

Comments
 (0)