From 9fb804976cefcb33eccb21c9ec46e33627ec0790 Mon Sep 17 00:00:00 2001 From: Pete Gillin Date: Thu, 10 Oct 2024 20:25:11 +0100 Subject: [PATCH 1/2] Add `terminate` ingest processor (#3003) (cherry picked from commit bcfdc95e28fd8d4f8441e961d4bae83c586d7508) --- specification/_doc_ids/table.csv | 1 + specification/ingest/_types/Processors.ts | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/specification/_doc_ids/table.csv b/specification/_doc_ids/table.csv index 286e15e033..d62eed207b 100644 --- a/specification/_doc_ids/table.csv +++ b/specification/_doc_ids/table.csv @@ -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 diff --git a/specification/ingest/_types/Processors.ts b/specification/ingest/_types/Processors.ts index 27b0729437..0ee0ad8021 100644 --- a/specification/ingest/_types/Processors.ts +++ b/specification/ingest/_types/Processors.ts @@ -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. @@ -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. From ee79398dab1b578f229f0de34b9c47911bfcea56 Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Fri, 11 Oct 2024 14:11:25 +0400 Subject: [PATCH 2/2] Run make contrib --- output/openapi/elasticsearch-openapi.json | 13 ++ .../elasticsearch-serverless-openapi.json | 13 ++ output/schema/schema-serverless.json | 129 +++++++++++------- output/schema/schema.json | 129 +++++++++++------- output/typescript/types.ts | 4 + 5 files changed, 188 insertions(+), 100 deletions(-) diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index c69bcee0d1..a3370f80aa 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -69445,6 +69445,9 @@ "split": { "$ref": "#/components/schemas/ingest._types:SplitProcessor" }, + "terminate": { + "$ref": "#/components/schemas/ingest._types:TerminateProcessor" + }, "trim": { "$ref": "#/components/schemas/ingest._types:TrimProcessor" }, @@ -70733,6 +70736,16 @@ } ] }, + "ingest._types:TerminateProcessor": { + "allOf": [ + { + "$ref": "#/components/schemas/ingest._types:ProcessorBase" + }, + { + "type": "object" + } + ] + }, "ingest._types:TrimProcessor": { "allOf": [ { diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index f5335dfe14..db95c8515b 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -46024,6 +46024,9 @@ "split": { "$ref": "#/components/schemas/ingest._types:SplitProcessor" }, + "terminate": { + "$ref": "#/components/schemas/ingest._types:TerminateProcessor" + }, "trim": { "$ref": "#/components/schemas/ingest._types:TrimProcessor" }, @@ -47312,6 +47315,16 @@ } ] }, + "ingest._types:TerminateProcessor": { + "allOf": [ + { + "$ref": "#/components/schemas/ingest._types:ProcessorBase" + }, + { + "type": "object" + } + ] + }, "ingest._types:TrimProcessor": { "allOf": [ { diff --git a/output/schema/schema-serverless.json b/output/schema/schema-serverless.json index dd7d7e7e42..9ad8023305 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -94209,7 +94209,7 @@ "name": "ConvertType", "namespace": "ingest._types" }, - "specLocation": "ingest/_types/Processors.ts#L525-L533" + "specLocation": "ingest/_types/Processors.ts#L531-L539" }, { "kind": "enum", @@ -94225,7 +94225,7 @@ "name": "GeoGridTargetFormat", "namespace": "ingest._types" }, - "specLocation": "ingest/_types/Processors.ts#L400-L403" + "specLocation": "ingest/_types/Processors.ts#L406-L409" }, { "kind": "enum", @@ -94244,7 +94244,7 @@ "name": "GeoGridTileType", "namespace": "ingest._types" }, - "specLocation": "ingest/_types/Processors.ts#L394-L398" + "specLocation": "ingest/_types/Processors.ts#L400-L404" }, { "kind": "enum", @@ -94262,7 +94262,7 @@ "name": "JsonProcessorConflictStrategy", "namespace": "ingest._types" }, - "specLocation": "ingest/_types/Processors.ts#L964-L969" + "specLocation": "ingest/_types/Processors.ts#L970-L975" }, { "kind": "enum", @@ -94278,7 +94278,7 @@ "name": "ShapeType", "namespace": "ingest._types" }, - "specLocation": "ingest/_types/Processors.ts#L1232-L1235" + "specLocation": "ingest/_types/Processors.ts#L1238-L1241" }, { "kind": "enum", @@ -94303,7 +94303,7 @@ "name": "UserAgentProperty", "namespace": "ingest._types" }, - "specLocation": "ingest/_types/Processors.ts#L474-L480" + "specLocation": "ingest/_types/Processors.ts#L480-L486" }, { "kind": "enum", @@ -121317,6 +121317,20 @@ } } }, + { + "description": "Terminates the current ingest pipeline, causing no further processors to be run.\nThis will normally be executed conditionally, using the `if` option.", + "docId": "terminate-processor", + "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/terminate-processor.html", + "name": "terminate", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "TerminateProcessor", + "namespace": "ingest._types" + } + } + }, { "description": "Trims whitespace from a field.\nIf the field is an array of strings, all members of the array will be trimmed.\nThis only works on leading and trailing whitespace.", "docId": "trim-processor", @@ -121387,7 +121401,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L27-L264", + "specLocation": "ingest/_types/Processors.ts#L27-L270", "variants": { "kind": "container", "nonExhaustive": true @@ -121451,7 +121465,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L291-L306" + "specLocation": "ingest/_types/Processors.ts#L297-L312" }, { "kind": "interface", @@ -121524,7 +121538,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L266-L289" + "specLocation": "ingest/_types/Processors.ts#L272-L295" }, { "inherits": { @@ -121644,7 +121658,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L308-L349" + "specLocation": "ingest/_types/Processors.ts#L314-L355" }, { "inherits": { @@ -121698,7 +121712,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L482-L498" + "specLocation": "ingest/_types/Processors.ts#L488-L504" }, { "inherits": { @@ -121775,7 +121789,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L500-L523" + "specLocation": "ingest/_types/Processors.ts#L506-L529" }, { "inherits": { @@ -121841,7 +121855,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L535-L555" + "specLocation": "ingest/_types/Processors.ts#L541-L561" }, { "inherits": { @@ -121939,7 +121953,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L557-L590" + "specLocation": "ingest/_types/Processors.ts#L563-L596" }, { "inherits": { @@ -122021,7 +122035,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L632-L659" + "specLocation": "ingest/_types/Processors.ts#L638-L665" }, { "inherits": { @@ -122127,7 +122141,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L592-L630" + "specLocation": "ingest/_types/Processors.ts#L598-L636" }, { "inherits": { @@ -122193,7 +122207,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L661-L680" + "specLocation": "ingest/_types/Processors.ts#L667-L686" }, { "inherits": { @@ -122246,7 +122260,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L682-L700" + "specLocation": "ingest/_types/Processors.ts#L688-L706" }, { "inherits": { @@ -122261,7 +122275,7 @@ "namespace": "ingest._types" }, "properties": [], - "specLocation": "ingest/_types/Processors.ts#L702-L702" + "specLocation": "ingest/_types/Processors.ts#L708-L708" }, { "inherits": { @@ -122365,7 +122379,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L704-L743" + "specLocation": "ingest/_types/Processors.ts#L710-L749" }, { "inherits": { @@ -122393,7 +122407,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L745-L751" + "specLocation": "ingest/_types/Processors.ts#L751-L757" }, { "inherits": { @@ -122446,7 +122460,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L753-L767" + "specLocation": "ingest/_types/Processors.ts#L759-L773" }, { "inherits": { @@ -122573,7 +122587,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L351-L392" + "specLocation": "ingest/_types/Processors.ts#L357-L398" }, { "inherits": { @@ -122680,7 +122694,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L405-L439" + "specLocation": "ingest/_types/Processors.ts#L411-L445" }, { "inherits": { @@ -122772,7 +122786,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L769-L794" + "specLocation": "ingest/_types/Processors.ts#L775-L800" }, { "inherits": { @@ -122850,7 +122864,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L796-L820" + "specLocation": "ingest/_types/Processors.ts#L802-L826" }, { "inherits": { @@ -122904,7 +122918,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L822-L838" + "specLocation": "ingest/_types/Processors.ts#L828-L844" }, { "inherits": { @@ -122976,7 +122990,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L840-L859" + "specLocation": "ingest/_types/Processors.ts#L846-L865" }, { "kind": "interface", @@ -123010,7 +123024,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L861-L873", + "specLocation": "ingest/_types/Processors.ts#L867-L879", "variants": { "kind": "container" } @@ -123049,7 +123063,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L875-L886" + "specLocation": "ingest/_types/Processors.ts#L881-L892" }, { "kind": "interface", @@ -123123,7 +123137,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L888-L914" + "specLocation": "ingest/_types/Processors.ts#L894-L920" }, { "inherits": { @@ -123176,7 +123190,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L916-L931" + "specLocation": "ingest/_types/Processors.ts#L922-L937" }, { "inherits": { @@ -123255,7 +123269,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L933-L962" + "specLocation": "ingest/_types/Processors.ts#L939-L968" }, { "inherits": { @@ -123412,7 +123426,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L971-L1023" + "specLocation": "ingest/_types/Processors.ts#L977-L1029" }, { "inherits": { @@ -123466,7 +123480,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1025-L1041" + "specLocation": "ingest/_types/Processors.ts#L1031-L1047" }, { "inherits": { @@ -123507,7 +123521,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1043-L1054" + "specLocation": "ingest/_types/Processors.ts#L1049-L1060" }, { "inherits": { @@ -123643,7 +123657,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1056-L1097" + "specLocation": "ingest/_types/Processors.ts#L1062-L1103" }, { "inherits": { @@ -123696,7 +123710,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1099-L1113" + "specLocation": "ingest/_types/Processors.ts#L1105-L1119" }, { "inherits": { @@ -123749,7 +123763,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1115-L1131" + "specLocation": "ingest/_types/Processors.ts#L1121-L1137" }, { "inherits": { @@ -123831,7 +123845,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1133-L1161" + "specLocation": "ingest/_types/Processors.ts#L1139-L1167" }, { "inherits": { @@ -123903,7 +123917,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1163-L1183" + "specLocation": "ingest/_types/Processors.ts#L1169-L1189" }, { "inherits": { @@ -123989,7 +124003,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1185-L1219" + "specLocation": "ingest/_types/Processors.ts#L1191-L1225" }, { "inherits": { @@ -124032,7 +124046,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1221-L1230" + "specLocation": "ingest/_types/Processors.ts#L1227-L1236" }, { "inherits": { @@ -124085,7 +124099,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1237-L1253" + "specLocation": "ingest/_types/Processors.ts#L1243-L1259" }, { "inherits": { @@ -124164,7 +124178,22 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1255-L1280" + "specLocation": "ingest/_types/Processors.ts#L1261-L1286" + }, + { + "inherits": { + "type": { + "name": "ProcessorBase", + "namespace": "ingest._types" + } + }, + "kind": "interface", + "name": { + "name": "TerminateProcessor", + "namespace": "ingest._types" + }, + "properties": [], + "specLocation": "ingest/_types/Processors.ts#L1288-L1288" }, { "inherits": { @@ -124218,7 +124247,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1282-L1298" + "specLocation": "ingest/_types/Processors.ts#L1290-L1306" }, { "inherits": { @@ -124272,7 +124301,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1300-L1316" + "specLocation": "ingest/_types/Processors.ts#L1308-L1324" }, { "inherits": { @@ -124326,7 +124355,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1318-L1334" + "specLocation": "ingest/_types/Processors.ts#L1326-L1342" }, { "inherits": { @@ -124406,7 +124435,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1336-L1362" + "specLocation": "ingest/_types/Processors.ts#L1344-L1370" }, { "inherits": { @@ -124519,7 +124548,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L441-L472" + "specLocation": "ingest/_types/Processors.ts#L447-L478" }, { "kind": "interface", diff --git a/output/schema/schema.json b/output/schema/schema.json index e3d103e3aa..d527ceccc3 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -140696,7 +140696,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L291-L306" + "specLocation": "ingest/_types/Processors.ts#L297-L312" }, { "kind": "interface", @@ -140816,7 +140816,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L308-L349" + "specLocation": "ingest/_types/Processors.ts#L314-L355" }, { "kind": "interface", @@ -140870,7 +140870,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L482-L498" + "specLocation": "ingest/_types/Processors.ts#L488-L504" }, { "kind": "interface", @@ -140947,7 +140947,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L500-L523" + "specLocation": "ingest/_types/Processors.ts#L506-L529" }, { "kind": "interface", @@ -141013,7 +141013,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L535-L555" + "specLocation": "ingest/_types/Processors.ts#L541-L561" }, { "kind": "enum", @@ -141044,7 +141044,7 @@ "name": "ConvertType", "namespace": "ingest._types" }, - "specLocation": "ingest/_types/Processors.ts#L525-L533" + "specLocation": "ingest/_types/Processors.ts#L531-L539" }, { "kind": "interface", @@ -141142,7 +141142,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L557-L590" + "specLocation": "ingest/_types/Processors.ts#L563-L596" }, { "kind": "interface", @@ -141282,7 +141282,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L592-L630" + "specLocation": "ingest/_types/Processors.ts#L598-L636" }, { "kind": "interface", @@ -141364,7 +141364,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L632-L659" + "specLocation": "ingest/_types/Processors.ts#L638-L665" }, { "kind": "interface", @@ -141430,7 +141430,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L661-L680" + "specLocation": "ingest/_types/Processors.ts#L667-L686" }, { "kind": "interface", @@ -141483,7 +141483,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L682-L700" + "specLocation": "ingest/_types/Processors.ts#L688-L706" }, { "kind": "interface", @@ -141498,7 +141498,7 @@ "namespace": "ingest._types" }, "properties": [], - "specLocation": "ingest/_types/Processors.ts#L702-L702" + "specLocation": "ingest/_types/Processors.ts#L708-L708" }, { "kind": "interface", @@ -141602,7 +141602,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L704-L743" + "specLocation": "ingest/_types/Processors.ts#L710-L749" }, { "kind": "interface", @@ -141630,7 +141630,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L745-L751" + "specLocation": "ingest/_types/Processors.ts#L751-L757" }, { "kind": "interface", @@ -141683,7 +141683,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L753-L767" + "specLocation": "ingest/_types/Processors.ts#L759-L773" }, { "kind": "interface", @@ -141810,7 +141810,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L351-L392" + "specLocation": "ingest/_types/Processors.ts#L357-L398" }, { "kind": "enum", @@ -141826,7 +141826,7 @@ "name": "GeoGridTargetFormat", "namespace": "ingest._types" }, - "specLocation": "ingest/_types/Processors.ts#L400-L403" + "specLocation": "ingest/_types/Processors.ts#L406-L409" }, { "kind": "enum", @@ -141845,7 +141845,7 @@ "name": "GeoGridTileType", "namespace": "ingest._types" }, - "specLocation": "ingest/_types/Processors.ts#L394-L398" + "specLocation": "ingest/_types/Processors.ts#L400-L404" }, { "kind": "interface", @@ -141952,7 +141952,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L405-L439" + "specLocation": "ingest/_types/Processors.ts#L411-L445" }, { "kind": "interface", @@ -142044,7 +142044,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L769-L794" + "specLocation": "ingest/_types/Processors.ts#L775-L800" }, { "kind": "interface", @@ -142122,7 +142122,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L796-L820" + "specLocation": "ingest/_types/Processors.ts#L802-L826" }, { "kind": "interface", @@ -142176,7 +142176,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L822-L838" + "specLocation": "ingest/_types/Processors.ts#L828-L844" }, { "kind": "interface", @@ -142210,7 +142210,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L861-L873", + "specLocation": "ingest/_types/Processors.ts#L867-L879", "variants": { "kind": "container" } @@ -142287,7 +142287,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L888-L914" + "specLocation": "ingest/_types/Processors.ts#L894-L920" }, { "kind": "interface", @@ -142323,7 +142323,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L875-L886" + "specLocation": "ingest/_types/Processors.ts#L881-L892" }, { "kind": "interface", @@ -142395,7 +142395,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L840-L859" + "specLocation": "ingest/_types/Processors.ts#L846-L865" }, { "kind": "interface", @@ -142448,7 +142448,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L916-L931" + "specLocation": "ingest/_types/Processors.ts#L922-L937" }, { "kind": "interface", @@ -142527,7 +142527,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L933-L962" + "specLocation": "ingest/_types/Processors.ts#L939-L968" }, { "kind": "enum", @@ -142545,7 +142545,7 @@ "name": "JsonProcessorConflictStrategy", "namespace": "ingest._types" }, - "specLocation": "ingest/_types/Processors.ts#L964-L969" + "specLocation": "ingest/_types/Processors.ts#L970-L975" }, { "kind": "interface", @@ -142702,7 +142702,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L971-L1023" + "specLocation": "ingest/_types/Processors.ts#L977-L1029" }, { "kind": "interface", @@ -142756,7 +142756,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1025-L1041" + "specLocation": "ingest/_types/Processors.ts#L1031-L1047" }, { "kind": "interface", @@ -142956,7 +142956,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1043-L1054" + "specLocation": "ingest/_types/Processors.ts#L1049-L1060" }, { "kind": "interface", @@ -143029,7 +143029,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L266-L289" + "specLocation": "ingest/_types/Processors.ts#L272-L295" }, { "kind": "interface", @@ -143513,6 +143513,20 @@ } } }, + { + "description": "Terminates the current ingest pipeline, causing no further processors to be run.\nThis will normally be executed conditionally, using the `if` option.", + "docId": "terminate-processor", + "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/terminate-processor.html", + "name": "terminate", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "TerminateProcessor", + "namespace": "ingest._types" + } + } + }, { "description": "Trims whitespace from a field.\nIf the field is an array of strings, all members of the array will be trimmed.\nThis only works on leading and trailing whitespace.", "docId": "trim-processor", @@ -143583,7 +143597,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L27-L264", + "specLocation": "ingest/_types/Processors.ts#L27-L270", "variants": { "kind": "container", "nonExhaustive": true @@ -143723,7 +143737,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1056-L1097" + "specLocation": "ingest/_types/Processors.ts#L1062-L1103" }, { "kind": "interface", @@ -143776,7 +143790,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1099-L1113" + "specLocation": "ingest/_types/Processors.ts#L1105-L1119" }, { "kind": "interface", @@ -143829,7 +143843,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1115-L1131" + "specLocation": "ingest/_types/Processors.ts#L1121-L1137" }, { "kind": "interface", @@ -143911,7 +143925,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1133-L1161" + "specLocation": "ingest/_types/Processors.ts#L1139-L1167" }, { "kind": "interface", @@ -143983,7 +143997,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1163-L1183" + "specLocation": "ingest/_types/Processors.ts#L1169-L1189" }, { "kind": "interface", @@ -144069,7 +144083,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1185-L1219" + "specLocation": "ingest/_types/Processors.ts#L1191-L1225" }, { "kind": "interface", @@ -144112,7 +144126,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1221-L1230" + "specLocation": "ingest/_types/Processors.ts#L1227-L1236" }, { "kind": "enum", @@ -144128,7 +144142,7 @@ "name": "ShapeType", "namespace": "ingest._types" }, - "specLocation": "ingest/_types/Processors.ts#L1232-L1235" + "specLocation": "ingest/_types/Processors.ts#L1238-L1241" }, { "kind": "interface", @@ -144181,7 +144195,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1237-L1253" + "specLocation": "ingest/_types/Processors.ts#L1243-L1259" }, { "kind": "interface", @@ -144260,7 +144274,22 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1255-L1280" + "specLocation": "ingest/_types/Processors.ts#L1261-L1286" + }, + { + "kind": "interface", + "inherits": { + "type": { + "name": "ProcessorBase", + "namespace": "ingest._types" + } + }, + "name": { + "name": "TerminateProcessor", + "namespace": "ingest._types" + }, + "properties": [], + "specLocation": "ingest/_types/Processors.ts#L1288-L1288" }, { "kind": "interface", @@ -144314,7 +144343,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1282-L1298" + "specLocation": "ingest/_types/Processors.ts#L1290-L1306" }, { "kind": "interface", @@ -144368,7 +144397,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1300-L1316" + "specLocation": "ingest/_types/Processors.ts#L1308-L1324" }, { "kind": "interface", @@ -144448,7 +144477,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1336-L1362" + "specLocation": "ingest/_types/Processors.ts#L1344-L1370" }, { "kind": "interface", @@ -144502,7 +144531,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1318-L1334" + "specLocation": "ingest/_types/Processors.ts#L1326-L1342" }, { "kind": "interface", @@ -144615,7 +144644,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L441-L472" + "specLocation": "ingest/_types/Processors.ts#L447-L478" }, { "kind": "enum", @@ -144640,7 +144669,7 @@ "name": "UserAgentProperty", "namespace": "ingest._types" }, - "specLocation": "ingest/_types/Processors.ts#L474-L480" + "specLocation": "ingest/_types/Processors.ts#L480-L486" }, { "kind": "request", diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 0c8a7685b0..98a8755417 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -13049,6 +13049,7 @@ export interface IngestProcessorContainer { set_security_user?: IngestSetSecurityUserProcessor sort?: IngestSortProcessor split?: IngestSplitProcessor + terminate?: IngestTerminateProcessor trim?: IngestTrimProcessor uppercase?: IngestUppercaseProcessor urldecode?: IngestUrlDecodeProcessor @@ -13122,6 +13123,9 @@ export interface IngestSplitProcessor extends IngestProcessorBase { target_field?: Field } +export interface IngestTerminateProcessor extends IngestProcessorBase { +} + export interface IngestTrimProcessor extends IngestProcessorBase { field: Field ignore_missing?: boolean