From b9501c92c8debb4c6125550e8dd6062541f120ca Mon Sep 17 00:00:00 2001 From: Laura Trotta <153528055+l-trotta@users.noreply.github.com> Date: Mon, 19 Feb 2024 16:29:41 +0100 Subject: [PATCH 1/2] Batch from java issues (#2412) * added 'remove_binary' to AttachmentProcessor (issue #727) * making node info path optional (issue #242) * making node info discover seed_host optional (issue #242) * changed description for update by query (issue #315) * adding custom options to index settings similarity (issue #299) * initial_master_nodes from string to string[] (issue #242) * correct contrib * correct node info discover class (issue #242) --- .../elasticsearch-serverless-openapi.json | 12 +- output/schema/schema.json | 353 +++++++++++------- output/typescript/types.ts | 19 +- specification/_json_spec/update_by_query.json | 2 +- specification/indices/_types/IndexSettings.ts | 4 + specification/ingest/_types/Processors.ts | 5 + specification/nodes/info/types.ts | 20 +- 7 files changed, 256 insertions(+), 159 deletions(-) diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 5da34f560d..a98d18060f 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -18419,8 +18419,8 @@ "tags": [ "update_by_query" ], - "summary": "Performs an update on every document in the index without changing the source,\nfor example to pick up a mapping change.", - "description": "Performs an update on every document in the index without changing the source,\nfor example to pick up a mapping change.", + "summary": "Updates documents that match the specified query. If no query is specified,\n performs an update on every document in the index without changing the source,\nfor example to pick up a mapping change.", + "description": "Updates documents that match the specified query. If no query is specified,\n performs an update on every document in the index without changing the source,\nfor example to pick up a mapping change.", "externalDocs": { "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update-by-query.html" }, @@ -44810,7 +44810,9 @@ "scripted_tfidf": { "$ref": "#/components/schemas/indices._types:SettingsSimilarityScriptedTfidf" } - } + }, + "minProperties": 1, + "maxProperties": 1 }, "indices._types:SettingsSimilarityBm25": { "type": "object", @@ -49745,6 +49747,10 @@ "target_field": { "$ref": "#/components/schemas/_types:Field" }, + "remove_binary": { + "description": "If true, the binary field will be removed from the document", + "type": "boolean" + }, "resource_name": { "description": "Field containing the name of the resource to decode.\nIf specified, the processor passes this resource name to the underlying Tika library to enable Resource Name Based Detection.", "type": "string" diff --git a/output/schema/schema.json b/output/schema/schema.json index bd7306d8cd..c7400f7c61 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -18926,7 +18926,7 @@ "stability": "stable" } }, - "description": "Performs an update on every document in the index without changing the source,\nfor example to pick up a mapping change.", + "description": "Updates documents that match the specified query. If no query is specified,\n performs an update on every document in the index without changing the source,\nfor example to pick up a mapping change.", "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update-by-query.html", "name": "update_by_query", "request": { @@ -110804,7 +110804,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L397-L399" + "specLocation": "indices/_types/IndexSettings.ts#L401-L403" }, { "kind": "interface", @@ -111474,7 +111474,7 @@ "name": "IndexCheckOnStartup", "namespace": "indices._types" }, - "specLocation": "indices/_types/IndexSettings.ts#L252-L259" + "specLocation": "indices/_types/IndexSettings.ts#L256-L263" }, { "kind": "interface", @@ -111920,7 +111920,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L244-L250" + "specLocation": "indices/_types/IndexSettings.ts#L248-L254" }, { "attachedBehaviors": [ @@ -112831,7 +112831,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L309-L315" + "specLocation": "indices/_types/IndexSettings.ts#L313-L319" }, { "kind": "interface", @@ -112924,7 +112924,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L266-L299" + "specLocation": "indices/_types/IndexSettings.ts#L270-L303" }, { "kind": "interface", @@ -112946,7 +112946,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L301-L307" + "specLocation": "indices/_types/IndexSettings.ts#L305-L311" }, { "kind": "interface", @@ -112978,7 +112978,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L317-L320" + "specLocation": "indices/_types/IndexSettings.ts#L321-L324" }, { "kind": "interface", @@ -113335,7 +113335,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L261-L264" + "specLocation": "indices/_types/IndexSettings.ts#L265-L268" }, { "kind": "interface", @@ -113356,7 +113356,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L533-L535" + "specLocation": "indices/_types/IndexSettings.ts#L537-L539" }, { "kind": "interface", @@ -113378,7 +113378,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L537-L544" + "specLocation": "indices/_types/IndexSettings.ts#L541-L548" }, { "kind": "interface", @@ -113432,7 +113432,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L546-L551" + "specLocation": "indices/_types/IndexSettings.ts#L550-L555" }, { "kind": "interface", @@ -113456,7 +113456,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L553-L560" + "specLocation": "indices/_types/IndexSettings.ts#L557-L564" }, { "kind": "enum", @@ -113579,7 +113579,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L401-L414" + "specLocation": "indices/_types/IndexSettings.ts#L405-L418" }, { "kind": "interface", @@ -113602,7 +113602,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L426-L433" + "specLocation": "indices/_types/IndexSettings.ts#L430-L437" }, { "kind": "interface", @@ -113624,7 +113624,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L463-L469" + "specLocation": "indices/_types/IndexSettings.ts#L467-L473" }, { "kind": "interface", @@ -113646,7 +113646,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L454-L461" + "specLocation": "indices/_types/IndexSettings.ts#L458-L465" }, { "kind": "interface", @@ -113669,7 +113669,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L435-L443" + "specLocation": "indices/_types/IndexSettings.ts#L439-L447" }, { "kind": "interface", @@ -113692,7 +113692,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L445-L452" + "specLocation": "indices/_types/IndexSettings.ts#L449-L456" }, { "kind": "interface", @@ -113715,7 +113715,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L416-L424" + "specLocation": "indices/_types/IndexSettings.ts#L420-L428" }, { "kind": "interface", @@ -113736,7 +113736,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L322-L324" + "specLocation": "indices/_types/IndexSettings.ts#L326-L328" }, { "kind": "interface", @@ -113786,7 +113786,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L326-L329" + "specLocation": "indices/_types/IndexSettings.ts#L330-L333" }, { "kind": "interface", @@ -113844,7 +113844,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L393-L395" + "specLocation": "indices/_types/IndexSettings.ts#L397-L399" }, { "kind": "interface", @@ -113887,7 +113887,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L235-L238" + "specLocation": "indices/_types/IndexSettings.ts#L239-L242" }, { "kind": "enum", @@ -113980,7 +113980,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L225-L228" + "specLocation": "indices/_types/IndexSettings.ts#L229-L232" }, { "kind": "interface", @@ -114002,7 +114002,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L220-L223" + "specLocation": "indices/_types/IndexSettings.ts#L224-L227" }, { "kind": "interface", @@ -114032,7 +114032,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L240-L242" + "specLocation": "indices/_types/IndexSettings.ts#L244-L246" }, { "kind": "interface", @@ -114064,7 +114064,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L230-L233" + "specLocation": "indices/_types/IndexSettings.ts#L234-L237" }, { "kind": "interface", @@ -114151,7 +114151,11 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L169-L177" + "specLocation": "indices/_types/IndexSettings.ts#L169-L181", + "variants": { + "kind": "container", + "nonExhaustive": true + } }, { "kind": "interface", @@ -114202,7 +114206,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L179-L184" + "specLocation": "indices/_types/IndexSettings.ts#L183-L188" }, { "kind": "interface", @@ -114231,7 +114235,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L186-L189" + "specLocation": "indices/_types/IndexSettings.ts#L190-L193" }, { "kind": "interface", @@ -114282,7 +114286,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L191-L196" + "specLocation": "indices/_types/IndexSettings.ts#L195-L200" }, { "kind": "interface", @@ -114333,7 +114337,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L198-L203" + "specLocation": "indices/_types/IndexSettings.ts#L202-L207" }, { "kind": "interface", @@ -114362,7 +114366,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L205-L208" + "specLocation": "indices/_types/IndexSettings.ts#L209-L212" }, { "kind": "interface", @@ -114391,7 +114395,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L210-L213" + "specLocation": "indices/_types/IndexSettings.ts#L214-L217" }, { "kind": "interface", @@ -114420,7 +114424,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L215-L218" + "specLocation": "indices/_types/IndexSettings.ts#L219-L222" }, { "kind": "interface", @@ -114474,7 +114478,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L471-L476" + "specLocation": "indices/_types/IndexSettings.ts#L475-L480" }, { "kind": "interface", @@ -114528,7 +114532,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L483-L488" + "specLocation": "indices/_types/IndexSettings.ts#L487-L492" }, { "kind": "interface", @@ -114560,7 +114564,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L478-L481" + "specLocation": "indices/_types/IndexSettings.ts#L482-L485" }, { "kind": "interface", @@ -114628,7 +114632,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L490-L499" + "specLocation": "indices/_types/IndexSettings.ts#L494-L503" }, { "isOpen": true, @@ -114658,7 +114662,7 @@ "name": "StorageType", "namespace": "indices._types" }, - "specLocation": "indices/_types/IndexSettings.ts#L501-L531" + "specLocation": "indices/_types/IndexSettings.ts#L505-L535" }, { "kind": "interface", @@ -114815,7 +114819,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L331-L353" + "specLocation": "indices/_types/IndexSettings.ts#L335-L357" }, { "kind": "enum", @@ -114839,7 +114843,7 @@ "name": "TranslogDurability", "namespace": "indices._types" }, - "specLocation": "indices/_types/IndexSettings.ts#L355-L370" + "specLocation": "indices/_types/IndexSettings.ts#L359-L374" }, { "kind": "interface", @@ -114875,7 +114879,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L372-L391" + "specLocation": "indices/_types/IndexSettings.ts#L376-L395" }, { "kind": "enum", @@ -128629,6 +128633,19 @@ } } }, + { + "description": "If true, the binary field will be removed from the document", + "name": "remove_binary", + "required": false, + "serverDefault": false, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } + }, { "description": "Field containing the name of the resource to decode.\nIf specified, the processor passes this resource name to the underlying Tika library to enable Resource Name Based Detection.", "name": "resource_name", @@ -128642,7 +128659,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L296-L332" + "specLocation": "ingest/_types/Processors.ts#L296-L337" }, { "inherits": { @@ -128696,7 +128713,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L387-L403" + "specLocation": "ingest/_types/Processors.ts#L392-L408" }, { "inherits": { @@ -128773,7 +128790,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L405-L428" + "specLocation": "ingest/_types/Processors.ts#L410-L433" }, { "inherits": { @@ -128839,7 +128856,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L440-L460" + "specLocation": "ingest/_types/Processors.ts#L445-L465" }, { "kind": "enum", @@ -128870,7 +128887,7 @@ "name": "ConvertType", "namespace": "ingest._types" }, - "specLocation": "ingest/_types/Processors.ts#L430-L438" + "specLocation": "ingest/_types/Processors.ts#L435-L443" }, { "inherits": { @@ -128968,7 +128985,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L462-L495" + "specLocation": "ingest/_types/Processors.ts#L467-L500" }, { "inherits": { @@ -129074,7 +129091,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L497-L535" + "specLocation": "ingest/_types/Processors.ts#L502-L540" }, { "inherits": { @@ -129156,7 +129173,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L537-L564" + "specLocation": "ingest/_types/Processors.ts#L542-L569" }, { "inherits": { @@ -129222,7 +129239,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L566-L585" + "specLocation": "ingest/_types/Processors.ts#L571-L590" }, { "inherits": { @@ -129262,7 +129279,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L587-L598" + "specLocation": "ingest/_types/Processors.ts#L592-L603" }, { "inherits": { @@ -129277,7 +129294,7 @@ "namespace": "ingest._types" }, "properties": [], - "specLocation": "ingest/_types/Processors.ts#L600-L600" + "specLocation": "ingest/_types/Processors.ts#L605-L605" }, { "inherits": { @@ -129381,7 +129398,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L602-L641" + "specLocation": "ingest/_types/Processors.ts#L607-L646" }, { "inherits": { @@ -129409,7 +129426,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L643-L649" + "specLocation": "ingest/_types/Processors.ts#L648-L654" }, { "inherits": { @@ -129462,7 +129479,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L651-L665" + "specLocation": "ingest/_types/Processors.ts#L656-L670" }, { "inherits": { @@ -129557,7 +129574,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L334-L363" + "specLocation": "ingest/_types/Processors.ts#L339-L368" }, { "inherits": { @@ -129649,7 +129666,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L667-L692" + "specLocation": "ingest/_types/Processors.ts#L672-L697" }, { "inherits": { @@ -129727,7 +129744,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L694-L718" + "specLocation": "ingest/_types/Processors.ts#L699-L723" }, { "kind": "interface", @@ -129761,7 +129778,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L741-L753", + "specLocation": "ingest/_types/Processors.ts#L746-L758", "variants": { "kind": "container" } @@ -129838,7 +129855,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L768-L794" + "specLocation": "ingest/_types/Processors.ts#L773-L799" }, { "kind": "interface", @@ -129874,7 +129891,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L755-L766" + "specLocation": "ingest/_types/Processors.ts#L760-L771" }, { "inherits": { @@ -129946,7 +129963,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L720-L739" + "specLocation": "ingest/_types/Processors.ts#L725-L744" }, { "inherits": { @@ -129999,7 +130016,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L796-L811" + "specLocation": "ingest/_types/Processors.ts#L801-L816" }, { "inherits": { @@ -130078,7 +130095,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L813-L842" + "specLocation": "ingest/_types/Processors.ts#L818-L847" }, { "kind": "enum", @@ -130096,7 +130113,7 @@ "name": "JsonProcessorConflictStrategy", "namespace": "ingest._types" }, - "specLocation": "ingest/_types/Processors.ts#L844-L849" + "specLocation": "ingest/_types/Processors.ts#L849-L854" }, { "inherits": { @@ -130253,7 +130270,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L851-L903" + "specLocation": "ingest/_types/Processors.ts#L856-L908" }, { "inherits": { @@ -130307,7 +130324,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L905-L921" + "specLocation": "ingest/_types/Processors.ts#L910-L926" }, { "kind": "interface", @@ -130473,7 +130490,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L923-L934" + "specLocation": "ingest/_types/Processors.ts#L928-L939" }, { "kind": "interface", @@ -131091,7 +131108,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L936-L946" + "specLocation": "ingest/_types/Processors.ts#L941-L951" }, { "inherits": { @@ -131144,7 +131161,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L948-L964" + "specLocation": "ingest/_types/Processors.ts#L953-L969" }, { "inherits": { @@ -131226,7 +131243,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L966-L994" + "specLocation": "ingest/_types/Processors.ts#L971-L999" }, { "inherits": { @@ -131298,7 +131315,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L996-L1016" + "specLocation": "ingest/_types/Processors.ts#L1001-L1021" }, { "inherits": { @@ -131384,7 +131401,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1018-L1052" + "specLocation": "ingest/_types/Processors.ts#L1023-L1057" }, { "inherits": { @@ -131427,7 +131444,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1054-L1063" + "specLocation": "ingest/_types/Processors.ts#L1059-L1068" }, { "kind": "enum", @@ -131443,7 +131460,7 @@ "name": "ShapeType", "namespace": "ingest._types" }, - "specLocation": "ingest/_types/Processors.ts#L1065-L1068" + "specLocation": "ingest/_types/Processors.ts#L1070-L1073" }, { "inherits": { @@ -131496,7 +131513,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1070-L1086" + "specLocation": "ingest/_types/Processors.ts#L1075-L1091" }, { "inherits": { @@ -131575,7 +131592,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1088-L1113" + "specLocation": "ingest/_types/Processors.ts#L1093-L1118" }, { "inherits": { @@ -131629,7 +131646,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1115-L1131" + "specLocation": "ingest/_types/Processors.ts#L1120-L1136" }, { "inherits": { @@ -131683,7 +131700,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1133-L1149" + "specLocation": "ingest/_types/Processors.ts#L1138-L1154" }, { "inherits": { @@ -131737,7 +131754,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L1151-L1167" + "specLocation": "ingest/_types/Processors.ts#L1156-L1172" }, { "inherits": { @@ -131817,7 +131834,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L365-L385" + "specLocation": "ingest/_types/Processors.ts#L370-L390" }, { "kind": "enum", @@ -163918,7 +163935,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L143-L145" + "specLocation": "nodes/info/types.ts#L145-L147" }, { "kind": "interface", @@ -164241,7 +164258,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L30-L66" + "specLocation": "nodes/info/types.ts#L32-L68" }, { "kind": "interface", @@ -164262,7 +164279,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L176-L178" + "specLocation": "nodes/info/types.ts#L180-L182" }, { "kind": "interface", @@ -164286,7 +164303,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L227-L229" + "specLocation": "nodes/info/types.ts#L231-L233" }, { "kind": "interface", @@ -164307,7 +164324,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L196-L198" + "specLocation": "nodes/info/types.ts#L200-L202" }, { "kind": "interface", @@ -164328,9 +164345,32 @@ } } ], - "specLocation": "nodes/info/types.ts#L180-L182" + "specLocation": "nodes/info/types.ts#L184-L186" }, { + "attachedBehaviors": [ + "AdditionalProperties" + ], + "behaviors": [ + { + "generics": [ + { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + }, + { + "kind": "user_defined_value" + } + ], + "type": { + "name": "AdditionalProperties", + "namespace": "_spec_utils" + } + } + ], "kind": "interface", "name": { "name": "NodeInfoDiscover", @@ -164339,7 +164379,21 @@ "properties": [ { "name": "seed_hosts", - "required": true, + "required": false, + "type": { + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + } + }, + { + "name": "type", + "required": false, "type": { "kind": "instance_of", "type": { @@ -164347,9 +164401,23 @@ "namespace": "_builtins" } } + }, + { + "name": "seed_providers", + "required": false, + "type": { + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + } } ], - "specLocation": "nodes/info/types.ts#L172-L174" + "specLocation": "nodes/info/types.ts#L174-L178" }, { "kind": "interface", @@ -164406,7 +164474,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L298-L303" + "specLocation": "nodes/info/types.ts#L302-L307" }, { "kind": "interface", @@ -164430,7 +164498,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L219-L221" + "specLocation": "nodes/info/types.ts#L223-L225" }, { "kind": "interface", @@ -164451,7 +164519,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L127-L129" + "specLocation": "nodes/info/types.ts#L129-L131" }, { "kind": "interface", @@ -164472,7 +164540,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L123-L125" + "specLocation": "nodes/info/types.ts#L125-L127" }, { "kind": "interface", @@ -164493,7 +164561,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L223-L225" + "specLocation": "nodes/info/types.ts#L227-L229" }, { "kind": "interface", @@ -164613,7 +164681,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L305-L316" + "specLocation": "nodes/info/types.ts#L309-L320" }, { "kind": "interface", @@ -164645,7 +164713,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L318-L321" + "specLocation": "nodes/info/types.ts#L322-L325" }, { "kind": "interface", @@ -164677,7 +164745,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L323-L326" + "specLocation": "nodes/info/types.ts#L327-L330" }, { "kind": "interface", @@ -164720,7 +164788,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L328-L332" + "specLocation": "nodes/info/types.ts#L332-L336" }, { "kind": "interface", @@ -164818,7 +164886,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L334-L343" + "specLocation": "nodes/info/types.ts#L338-L347" }, { "kind": "interface", @@ -164829,7 +164897,7 @@ "properties": [ { "name": "logs", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -164840,7 +164908,7 @@ }, { "name": "home", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -164851,7 +164919,7 @@ }, { "name": "repo", - "required": true, + "required": false, "type": { "kind": "array_of", "value": { @@ -164878,7 +164946,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L157-L162" + "specLocation": "nodes/info/types.ts#L159-L164" }, { "kind": "interface", @@ -164899,7 +164967,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L164-L166" + "specLocation": "nodes/info/types.ts#L166-L168" }, { "kind": "interface", @@ -164920,7 +164988,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L168-L170" + "specLocation": "nodes/info/types.ts#L170-L172" }, { "kind": "interface", @@ -164952,7 +165020,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L276-L279" + "specLocation": "nodes/info/types.ts#L280-L283" }, { "kind": "interface", @@ -164973,7 +165041,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L281-L283" + "specLocation": "nodes/info/types.ts#L285-L287" }, { "kind": "interface", @@ -164994,7 +165062,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L285-L287" + "specLocation": "nodes/info/types.ts#L289-L291" }, { "kind": "interface", @@ -165027,7 +165095,7 @@ }, { "name": "path", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -165169,7 +165237,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L68-L84" + "specLocation": "nodes/info/types.ts#L70-L86" }, { "kind": "interface", @@ -165215,10 +165283,13 @@ "name": "initial_master_nodes", "required": false, "type": { - "kind": "instance_of", - "type": { - "name": "string", - "namespace": "_builtins" + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } } } }, @@ -165241,7 +165312,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L131-L141" + "specLocation": "nodes/info/types.ts#L133-L143" }, { "kind": "interface", @@ -165262,7 +165333,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L147-L149" + "specLocation": "nodes/info/types.ts#L149-L151" }, { "kind": "interface", @@ -165340,7 +165411,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L184-L189" + "specLocation": "nodes/info/types.ts#L188-L193" }, { "kind": "interface", @@ -165362,7 +165433,7 @@ } ], "shortcutProperty": "default", - "specLocation": "nodes/info/types.ts#L191-L194" + "specLocation": "nodes/info/types.ts#L195-L198" }, { "kind": "interface", @@ -165746,7 +165817,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L86-L121" + "specLocation": "nodes/info/types.ts#L88-L123" }, { "kind": "interface", @@ -165767,7 +165838,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L215-L217" + "specLocation": "nodes/info/types.ts#L219-L221" }, { "kind": "interface", @@ -165817,7 +165888,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L151-L155" + "specLocation": "nodes/info/types.ts#L153-L157" }, { "kind": "interface", @@ -165860,7 +165931,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L200-L204" + "specLocation": "nodes/info/types.ts#L204-L208" }, { "kind": "interface", @@ -165881,7 +165952,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L211-L213" + "specLocation": "nodes/info/types.ts#L215-L217" }, { "kind": "interface", @@ -165903,7 +165974,7 @@ } ], "shortcutProperty": "default", - "specLocation": "nodes/info/types.ts#L206-L209" + "specLocation": "nodes/info/types.ts#L210-L213" }, { "kind": "interface", @@ -165960,7 +166031,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L345-L349" + "specLocation": "nodes/info/types.ts#L349-L353" }, { "kind": "interface", @@ -166010,7 +166081,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L231-L235" + "specLocation": "nodes/info/types.ts#L235-L239" }, { "kind": "interface", @@ -166031,7 +166102,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L268-L270" + "specLocation": "nodes/info/types.ts#L272-L274" }, { "kind": "interface", @@ -166052,7 +166123,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L272-L274" + "specLocation": "nodes/info/types.ts#L276-L278" }, { "kind": "interface", @@ -166106,7 +166177,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L237-L242" + "specLocation": "nodes/info/types.ts#L241-L246" }, { "kind": "interface", @@ -166138,7 +166209,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L248-L251" + "specLocation": "nodes/info/types.ts#L252-L255" }, { "kind": "interface", @@ -166214,7 +166285,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L253-L257" + "specLocation": "nodes/info/types.ts#L257-L261" }, { "kind": "interface", @@ -166246,7 +166317,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L263-L266" + "specLocation": "nodes/info/types.ts#L267-L270" }, { "kind": "interface", @@ -166267,7 +166338,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L259-L261" + "specLocation": "nodes/info/types.ts#L263-L265" }, { "kind": "interface", @@ -166299,7 +166370,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L244-L246" + "specLocation": "nodes/info/types.ts#L248-L250" }, { "kind": "interface", @@ -166474,7 +166545,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L351-L365" + "specLocation": "nodes/info/types.ts#L355-L369" }, { "kind": "interface", @@ -166609,7 +166680,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L367-L384" + "specLocation": "nodes/info/types.ts#L371-L388" }, { "kind": "interface", @@ -166664,7 +166735,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L386-L393" + "specLocation": "nodes/info/types.ts#L390-L397" }, { "kind": "interface", @@ -166740,7 +166811,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L289-L296" + "specLocation": "nodes/info/types.ts#L293-L300" }, { "attachedBehaviors": [ diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 78ea2b237b..432c912a51 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -11554,6 +11554,7 @@ export interface IngestAttachmentProcessor extends IngestProcessorBase { indexed_chars_field?: Field properties?: string[] target_field?: Field + remove_binary?: boolean resource_name?: string } @@ -15296,9 +15297,13 @@ export interface NodesInfoNodeInfoClient { type: string } -export interface NodesInfoNodeInfoDiscover { - seed_hosts: string +export interface NodesInfoNodeInfoDiscoverKeys { + seed_hosts?: string[] + type?: string + seed_providers?: string[] } +export type NodesInfoNodeInfoDiscover = NodesInfoNodeInfoDiscoverKeys + & { [property: string]: any } export interface NodesInfoNodeInfoHttp { bound_address: string[] @@ -15364,9 +15369,9 @@ export interface NodesInfoNodeInfoOSCPU { } export interface NodesInfoNodeInfoPath { - logs: string - home: string - repo: string[] + logs?: string + home?: string + repo?: string[] data?: string[] } @@ -15394,7 +15399,7 @@ export interface NodesInfoNodeInfoSearchRemote { export interface NodesInfoNodeInfoSettings { cluster: NodesInfoNodeInfoSettingsCluster node: NodesInfoNodeInfoSettingsNode - path: NodesInfoNodeInfoPath + path?: NodesInfoNodeInfoPath repositories?: NodesInfoNodeInfoRepositories discovery?: NodesInfoNodeInfoDiscover action?: NodesInfoNodeInfoAction @@ -15413,7 +15418,7 @@ export interface NodesInfoNodeInfoSettingsCluster { name: Name routing?: IndicesIndexRouting election: NodesInfoNodeInfoSettingsClusterElection - initial_master_nodes?: string + initial_master_nodes?: string[] deprecation_indexing?: NodesInfoDeprecationIndexing } diff --git a/specification/_json_spec/update_by_query.json b/specification/_json_spec/update_by_query.json index 3856c4249a..b6068132ae 100644 --- a/specification/_json_spec/update_by_query.json +++ b/specification/_json_spec/update_by_query.json @@ -2,7 +2,7 @@ "update_by_query": { "documentation": { "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update-by-query.html", - "description": "Performs an update on every document in the index without changing the source,\nfor example to pick up a mapping change." + "description": "Updates documents that match the specified query. If no query is specified,\n performs an update on every document in the index without changing the source,\nfor example to pick up a mapping change." }, "stability": "stable", "visibility": "public", diff --git a/specification/indices/_types/IndexSettings.ts b/specification/indices/_types/IndexSettings.ts index 9ce9d2cfe0..df538542a0 100644 --- a/specification/indices/_types/IndexSettings.ts +++ b/specification/indices/_types/IndexSettings.ts @@ -166,6 +166,10 @@ export class IndexSettings store?: Storage } +/** + * @variants container + * @non_exhaustive + */ export class SettingsSimilarity { bm25?: SettingsSimilarityBm25 dfi?: SettingsSimilarityDfi diff --git a/specification/ingest/_types/Processors.ts b/specification/ingest/_types/Processors.ts index ae014053b5..19ce5600f5 100644 --- a/specification/ingest/_types/Processors.ts +++ b/specification/ingest/_types/Processors.ts @@ -324,6 +324,11 @@ export class AttachmentProcessor extends ProcessorBase { * @server_default attachment */ target_field?: Field + /** + * If true, the binary field will be removed from the document + * @server_default false + */ + remove_binary?: boolean /** * Field containing the name of the resource to decode. * If specified, the processor passes this resource name to the underlying Tika library to enable Resource Name Based Detection. diff --git a/specification/nodes/info/types.ts b/specification/nodes/info/types.ts index c9155a3049..57235356c8 100644 --- a/specification/nodes/info/types.ts +++ b/specification/nodes/info/types.ts @@ -26,6 +26,8 @@ import { integer, long } from '@_types/Numeric' import { PluginStats } from '@_types/Stats' import { NodeRoles } from '@_types/Node' import { Duration, DurationValue, EpochTime, UnitMillis } from '@_types/Time' +import { UserDefinedValue } from '@spec_utils/UserDefinedValue' +import { AdditionalProperties } from '@spec_utils/behaviors' export class NodeInfo { attributes: Dictionary @@ -68,7 +70,7 @@ export class NodeInfo { export class NodeInfoSettings { cluster: NodeInfoSettingsCluster node: NodeInfoSettingsNode - path: NodeInfoPath + path?: NodeInfoPath repositories?: NodeInfoRepositories discovery?: NodeInfoDiscover action?: NodeInfoAction @@ -132,7 +134,7 @@ export class NodeInfoSettingsCluster { name: Name routing?: IndexRouting election: NodeInfoSettingsClusterElection - initial_master_nodes?: string + initial_master_nodes?: string[] /** * @availability stack since=7.16.0 * @availability serverless @@ -155,9 +157,9 @@ export class NodeInfoSettingsNode { } export class NodeInfoPath { - logs: string - home: string - repo: string[] + logs?: string + home?: string + repo?: string[] data?: string[] } @@ -169,8 +171,12 @@ export class NodeInfoRepositoriesUrl { allowed_urls: string } -export class NodeInfoDiscover { - seed_hosts: string +export class NodeInfoDiscover + implements AdditionalProperties +{ + seed_hosts?: string[] + type?: string + seed_providers?: string[] } export class NodeInfoAction { From 4c000527cd2339c6db5bef952321a1a7bca7f565 Mon Sep 17 00:00:00 2001 From: Laura Date: Mon, 19 Feb 2024 18:30:55 +0100 Subject: [PATCH 2/2] contrib --- output/schema/schema.json | 72 +++++++++++++++++++-------------------- 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/output/schema/schema.json b/output/schema/schema.json index c7400f7c61..7a91f25679 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -164279,7 +164279,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L180-L182" + "specLocation": "nodes/info/types.ts#L182-L184" }, { "kind": "interface", @@ -164303,7 +164303,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L231-L233" + "specLocation": "nodes/info/types.ts#L233-L235" }, { "kind": "interface", @@ -164324,7 +164324,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L200-L202" + "specLocation": "nodes/info/types.ts#L202-L204" }, { "kind": "interface", @@ -164345,7 +164345,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L184-L186" + "specLocation": "nodes/info/types.ts#L186-L188" }, { "attachedBehaviors": [ @@ -164417,7 +164417,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L174-L178" + "specLocation": "nodes/info/types.ts#L174-L180" }, { "kind": "interface", @@ -164474,7 +164474,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L302-L307" + "specLocation": "nodes/info/types.ts#L304-L309" }, { "kind": "interface", @@ -164498,7 +164498,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L223-L225" + "specLocation": "nodes/info/types.ts#L225-L227" }, { "kind": "interface", @@ -164561,7 +164561,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L227-L229" + "specLocation": "nodes/info/types.ts#L229-L231" }, { "kind": "interface", @@ -164681,7 +164681,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L309-L320" + "specLocation": "nodes/info/types.ts#L311-L322" }, { "kind": "interface", @@ -164713,7 +164713,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L322-L325" + "specLocation": "nodes/info/types.ts#L324-L327" }, { "kind": "interface", @@ -164745,7 +164745,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L327-L330" + "specLocation": "nodes/info/types.ts#L329-L332" }, { "kind": "interface", @@ -164788,7 +164788,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L332-L336" + "specLocation": "nodes/info/types.ts#L334-L338" }, { "kind": "interface", @@ -164886,7 +164886,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L338-L347" + "specLocation": "nodes/info/types.ts#L340-L349" }, { "kind": "interface", @@ -165020,7 +165020,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L280-L283" + "specLocation": "nodes/info/types.ts#L282-L285" }, { "kind": "interface", @@ -165041,7 +165041,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L285-L287" + "specLocation": "nodes/info/types.ts#L287-L289" }, { "kind": "interface", @@ -165062,7 +165062,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L289-L291" + "specLocation": "nodes/info/types.ts#L291-L293" }, { "kind": "interface", @@ -165411,7 +165411,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L188-L193" + "specLocation": "nodes/info/types.ts#L190-L195" }, { "kind": "interface", @@ -165433,7 +165433,7 @@ } ], "shortcutProperty": "default", - "specLocation": "nodes/info/types.ts#L195-L198" + "specLocation": "nodes/info/types.ts#L197-L200" }, { "kind": "interface", @@ -165838,7 +165838,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L219-L221" + "specLocation": "nodes/info/types.ts#L221-L223" }, { "kind": "interface", @@ -165931,7 +165931,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L204-L208" + "specLocation": "nodes/info/types.ts#L206-L210" }, { "kind": "interface", @@ -165952,7 +165952,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L215-L217" + "specLocation": "nodes/info/types.ts#L217-L219" }, { "kind": "interface", @@ -165974,7 +165974,7 @@ } ], "shortcutProperty": "default", - "specLocation": "nodes/info/types.ts#L210-L213" + "specLocation": "nodes/info/types.ts#L212-L215" }, { "kind": "interface", @@ -166031,7 +166031,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L349-L353" + "specLocation": "nodes/info/types.ts#L351-L355" }, { "kind": "interface", @@ -166081,7 +166081,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L235-L239" + "specLocation": "nodes/info/types.ts#L237-L241" }, { "kind": "interface", @@ -166102,7 +166102,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L272-L274" + "specLocation": "nodes/info/types.ts#L274-L276" }, { "kind": "interface", @@ -166123,7 +166123,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L276-L278" + "specLocation": "nodes/info/types.ts#L278-L280" }, { "kind": "interface", @@ -166177,7 +166177,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L241-L246" + "specLocation": "nodes/info/types.ts#L243-L248" }, { "kind": "interface", @@ -166209,7 +166209,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L252-L255" + "specLocation": "nodes/info/types.ts#L254-L257" }, { "kind": "interface", @@ -166285,7 +166285,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L257-L261" + "specLocation": "nodes/info/types.ts#L259-L263" }, { "kind": "interface", @@ -166317,7 +166317,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L267-L270" + "specLocation": "nodes/info/types.ts#L269-L272" }, { "kind": "interface", @@ -166338,7 +166338,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L263-L265" + "specLocation": "nodes/info/types.ts#L265-L267" }, { "kind": "interface", @@ -166370,7 +166370,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L248-L250" + "specLocation": "nodes/info/types.ts#L250-L252" }, { "kind": "interface", @@ -166545,7 +166545,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L355-L369" + "specLocation": "nodes/info/types.ts#L357-L371" }, { "kind": "interface", @@ -166680,7 +166680,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L371-L388" + "specLocation": "nodes/info/types.ts#L373-L390" }, { "kind": "interface", @@ -166735,7 +166735,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L390-L397" + "specLocation": "nodes/info/types.ts#L392-L399" }, { "kind": "interface", @@ -166811,7 +166811,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L293-L300" + "specLocation": "nodes/info/types.ts#L295-L302" }, { "attachedBehaviors": [