Skip to content

Commit

Permalink
Add terminate ingest processor (#3003)
Browse files Browse the repository at this point in the history
  • Loading branch information
PeteGillinElastic authored Oct 10, 2024
1 parent e31f5a4 commit bcfdc95
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions specification/_doc_ids/table.csv
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,7 @@ stop-transform,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/
supported-flags,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/query-dsl-simple-query-string-query.html#supported-flags
tasks,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/tasks.html
templating-role-query,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/field-and-document-access-control.html#templating-role-query
terminate-processor,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/terminate-processor.html
time-value,https://github.com/elastic/elasticsearch/blob/{branch}/libs/core/src/main/java/org/elasticsearch/core/TimeValue.java
trim-processor,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/trim-processor.html
unfreeze-index-api,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/unfreeze-index-api.html
Expand Down
8 changes: 8 additions & 0 deletions specification/ingest/_types/Processors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,12 @@ export class ProcessorContainer {
* @doc_id split-processor
*/
split?: SplitProcessor
/**
* Terminates the current ingest pipeline, causing no further processors to be run.
* This will normally be executed conditionally, using the `if` option.
* @doc_id terminate-processor
*/
terminate?: TerminateProcessor
/**
* Trims whitespace from a field.
* If the field is an array of strings, all members of the array will be trimmed.
Expand Down Expand Up @@ -1279,6 +1285,8 @@ export class SplitProcessor extends ProcessorBase {
target_field?: Field
}

export class TerminateProcessor extends ProcessorBase {}

export class TrimProcessor extends ProcessorBase {
/**
* The string-valued field to trim whitespace from.
Expand Down

0 comments on commit bcfdc95

Please sign in to comment.