From 500defe36f3f1cf29c674885d6902d6cbc78c030 Mon Sep 17 00:00:00 2001 From: Laura Trotta <153528055+l-trotta@users.noreply.github.com> Date: Thu, 6 Mar 2025 13:20:40 +0100 Subject: [PATCH] correct availability (#3887) (cherry picked from commit ce78d7a72f6a0e62db0ac4330136255fd561e675) --- .../elasticsearch-serverless-openapi.json | 20 --- output/schema/schema-serverless.json | 142 ++++++------------ output/schema/schema.json | 100 ++++++------ specification/indices/_types/IndexSettings.ts | 10 +- 4 files changed, 108 insertions(+), 164 deletions(-) diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 612ee69357..4375856d74 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -35337,26 +35337,6 @@ "sort": { "$ref": "#/components/schemas/indices._types:IndexSegmentSort" }, - "number_of_shards": { - "oneOf": [ - { - "type": "number" - }, - { - "type": "string" - } - ] - }, - "number_of_replicas": { - "oneOf": [ - { - "type": "number" - }, - { - "type": "string" - } - ] - }, "number_of_routing_shards": { "type": "number" }, diff --git a/output/schema/schema-serverless.json b/output/schema/schema-serverless.json index ee6be1da60..ce6e7a3842 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -95440,7 +95440,7 @@ "name": "IndexCheckOnStartup", "namespace": "indices._types" }, - "specLocation": "indices/_types/IndexSettings.ts#L264-L271" + "specLocation": "indices/_types/IndexSettings.ts#L270-L277" }, { "kind": "enum", @@ -95576,7 +95576,7 @@ "name": "SettingsSimilarity", "namespace": "indices._types" }, - "specLocation": "indices/_types/IndexSettings.ts#L172-L184", + "specLocation": "indices/_types/IndexSettings.ts#L178-L190", "type": { "items": [ { @@ -95693,7 +95693,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L190-L195" + "specLocation": "indices/_types/IndexSettings.ts#L196-L201" }, { "kind": "interface", @@ -95711,7 +95711,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L186-L188" + "specLocation": "indices/_types/IndexSettings.ts#L192-L194" }, { "kind": "interface", @@ -95740,7 +95740,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L197-L200" + "specLocation": "indices/_types/IndexSettings.ts#L203-L206" }, { "kind": "interface", @@ -95791,7 +95791,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L202-L207" + "specLocation": "indices/_types/IndexSettings.ts#L208-L213" }, { "kind": "interface", @@ -95842,7 +95842,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L209-L214" + "specLocation": "indices/_types/IndexSettings.ts#L215-L220" }, { "kind": "interface", @@ -95871,7 +95871,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L216-L219" + "specLocation": "indices/_types/IndexSettings.ts#L222-L225" }, { "kind": "interface", @@ -95900,7 +95900,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L221-L224" + "specLocation": "indices/_types/IndexSettings.ts#L227-L230" }, { "kind": "interface", @@ -95940,7 +95940,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L226-L230" + "specLocation": "indices/_types/IndexSettings.ts#L232-L236" }, { "kind": "enum", @@ -95959,7 +95959,7 @@ "name": "SourceMode", "namespace": "indices._types" }, - "specLocation": "indices/_types/IndexSettings.ts#L503-L507" + "specLocation": "indices/_types/IndexSettings.ts#L509-L513" }, { "isOpen": true, @@ -95986,7 +95986,7 @@ "name": "StorageType", "namespace": "indices._types" }, - "specLocation": "indices/_types/IndexSettings.ts#L539-L567" + "specLocation": "indices/_types/IndexSettings.ts#L545-L573" }, { "kind": "enum", @@ -96010,7 +96010,7 @@ "name": "TranslogDurability", "namespace": "indices._types" }, - "specLocation": "indices/_types/IndexSettings.ts#L373-L388" + "specLocation": "indices/_types/IndexSettings.ts#L379-L394" }, { "kind": "enum", @@ -113889,54 +113889,6 @@ } } }, - { - "name": "number_of_shards", - "required": false, - "serverDefault": "1", - "type": { - "items": [ - { - "kind": "instance_of", - "type": { - "name": "integer", - "namespace": "_types" - } - }, - { - "kind": "instance_of", - "type": { - "name": "string", - "namespace": "_builtins" - } - } - ], - "kind": "union_of" - } - }, - { - "name": "number_of_replicas", - "required": false, - "serverDefault": "0", - "type": { - "items": [ - { - "kind": "instance_of", - "type": { - "name": "integer", - "namespace": "_types" - } - }, - { - "kind": "instance_of", - "type": { - "name": "string", - "namespace": "_builtins" - } - } - ], - "kind": "union_of" - } - }, { "name": "number_of_routing_shards", "required": false, @@ -114596,7 +114548,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L70-L170" + "specLocation": "indices/_types/IndexSettings.ts#L70-L176" }, { "kind": "interface", @@ -114772,7 +114724,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L340-L342" + "specLocation": "indices/_types/IndexSettings.ts#L346-L348" }, { "kind": "interface", @@ -114822,7 +114774,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L344-L347" + "specLocation": "indices/_types/IndexSettings.ts#L350-L353" }, { "kind": "interface", @@ -114854,7 +114806,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L242-L245" + "specLocation": "indices/_types/IndexSettings.ts#L248-L251" }, { "kind": "interface", @@ -114876,7 +114828,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L247-L250" + "specLocation": "indices/_types/IndexSettings.ts#L253-L256" }, { "kind": "interface", @@ -114930,7 +114882,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L509-L514" + "specLocation": "indices/_types/IndexSettings.ts#L515-L520" }, { "kind": "interface", @@ -114962,7 +114914,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L516-L519" + "specLocation": "indices/_types/IndexSettings.ts#L522-L525" }, { "kind": "interface", @@ -115016,7 +114968,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L521-L526" + "specLocation": "indices/_types/IndexSettings.ts#L527-L532" }, { "kind": "interface", @@ -115126,7 +115078,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L256-L262" + "specLocation": "indices/_types/IndexSettings.ts#L262-L268" }, { "kind": "interface", @@ -115157,7 +115109,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L237-L240" + "specLocation": "indices/_types/IndexSettings.ts#L243-L246" }, { "kind": "interface", @@ -115179,7 +115131,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L232-L235" + "specLocation": "indices/_types/IndexSettings.ts#L238-L241" }, { "kind": "interface", @@ -115490,7 +115442,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L278-L317" + "specLocation": "indices/_types/IndexSettings.ts#L284-L323" }, { "kind": "interface", @@ -115512,7 +115464,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L319-L325" + "specLocation": "indices/_types/IndexSettings.ts#L325-L331" }, { "kind": "interface", @@ -115544,7 +115496,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L273-L276" + "specLocation": "indices/_types/IndexSettings.ts#L279-L282" }, { "kind": "interface", @@ -115604,7 +115556,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L349-L371" + "specLocation": "indices/_types/IndexSettings.ts#L355-L377" }, { "kind": "interface", @@ -115640,7 +115592,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L390-L409" + "specLocation": "indices/_types/IndexSettings.ts#L396-L415" }, { "kind": "interface", @@ -115670,7 +115622,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L252-L254" + "specLocation": "indices/_types/IndexSettings.ts#L258-L260" }, { "kind": "interface", @@ -115790,7 +115742,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L327-L333" + "specLocation": "indices/_types/IndexSettings.ts#L333-L339" }, { "kind": "interface", @@ -115822,7 +115774,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L335-L338" + "specLocation": "indices/_types/IndexSettings.ts#L341-L344" }, { "kind": "interface", @@ -115843,7 +115795,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L411-L413" + "specLocation": "indices/_types/IndexSettings.ts#L417-L419" }, { "kind": "interface", @@ -115864,7 +115816,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L415-L417" + "specLocation": "indices/_types/IndexSettings.ts#L421-L423" }, { "description": "Mapping Limit Settings", @@ -115988,7 +115940,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L419-L433" + "specLocation": "indices/_types/IndexSettings.ts#L425-L439" }, { "kind": "interface", @@ -116048,7 +116000,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L435-L452" + "specLocation": "indices/_types/IndexSettings.ts#L441-L458" }, { "kind": "interface", @@ -116071,7 +116023,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L454-L461" + "specLocation": "indices/_types/IndexSettings.ts#L460-L467" }, { "kind": "interface", @@ -116094,7 +116046,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L463-L471" + "specLocation": "indices/_types/IndexSettings.ts#L469-L477" }, { "kind": "interface", @@ -116117,7 +116069,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L473-L480" + "specLocation": "indices/_types/IndexSettings.ts#L479-L486" }, { "kind": "interface", @@ -116139,7 +116091,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L482-L489" + "specLocation": "indices/_types/IndexSettings.ts#L488-L495" }, { "kind": "interface", @@ -116161,7 +116113,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L491-L497" + "specLocation": "indices/_types/IndexSettings.ts#L497-L503" }, { "kind": "interface", @@ -116182,7 +116134,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L499-L501" + "specLocation": "indices/_types/IndexSettings.ts#L505-L507" }, { "kind": "interface", @@ -116236,7 +116188,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L582-L587" + "specLocation": "indices/_types/IndexSettings.ts#L588-L593" }, { "kind": "interface", @@ -116260,7 +116212,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L589-L596" + "specLocation": "indices/_types/IndexSettings.ts#L595-L602" }, { "kind": "interface", @@ -116281,7 +116233,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L569-L571" + "specLocation": "indices/_types/IndexSettings.ts#L575-L577" }, { "kind": "interface", @@ -116303,7 +116255,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L573-L580" + "specLocation": "indices/_types/IndexSettings.ts#L579-L586" }, { "kind": "interface", @@ -116336,7 +116288,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L528-L537" + "specLocation": "indices/_types/IndexSettings.ts#L534-L543" }, { "kind": "interface", diff --git a/output/schema/schema.json b/output/schema/schema.json index 9db7431c6b..20db79ffed 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -126242,7 +126242,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L415-L417" + "specLocation": "indices/_types/IndexSettings.ts#L421-L423" }, { "kind": "interface", @@ -126990,7 +126990,7 @@ "name": "IndexCheckOnStartup", "namespace": "indices._types" }, - "specLocation": "indices/_types/IndexSettings.ts#L264-L271" + "specLocation": "indices/_types/IndexSettings.ts#L270-L277" }, { "kind": "interface", @@ -127436,7 +127436,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L256-L262" + "specLocation": "indices/_types/IndexSettings.ts#L262-L268" }, { "kind": "interface", @@ -127545,6 +127545,9 @@ } }, { + "availability": { + "stack": {} + }, "name": "number_of_shards", "required": false, "serverDefault": "1", @@ -127569,6 +127572,9 @@ } }, { + "availability": { + "stack": {} + }, "name": "number_of_replicas", "required": false, "serverDefault": "0", @@ -128251,7 +128257,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L70-L170" + "specLocation": "indices/_types/IndexSettings.ts#L70-L176" }, { "kind": "interface", @@ -128371,7 +128377,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L327-L333" + "specLocation": "indices/_types/IndexSettings.ts#L333-L339" }, { "kind": "interface", @@ -128489,7 +128495,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L278-L317" + "specLocation": "indices/_types/IndexSettings.ts#L284-L323" }, { "kind": "interface", @@ -128511,7 +128517,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L319-L325" + "specLocation": "indices/_types/IndexSettings.ts#L325-L331" }, { "kind": "interface", @@ -128543,7 +128549,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L335-L338" + "specLocation": "indices/_types/IndexSettings.ts#L341-L344" }, { "kind": "interface", @@ -128932,7 +128938,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L273-L276" + "specLocation": "indices/_types/IndexSettings.ts#L279-L282" }, { "kind": "interface", @@ -128953,7 +128959,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L569-L571" + "specLocation": "indices/_types/IndexSettings.ts#L575-L577" }, { "kind": "interface", @@ -128975,7 +128981,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L573-L580" + "specLocation": "indices/_types/IndexSettings.ts#L579-L586" }, { "kind": "interface", @@ -129029,7 +129035,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L582-L587" + "specLocation": "indices/_types/IndexSettings.ts#L588-L593" }, { "kind": "interface", @@ -129053,7 +129059,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L589-L596" + "specLocation": "indices/_types/IndexSettings.ts#L595-L602" }, { "kind": "enum", @@ -129199,7 +129205,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L419-L433" + "specLocation": "indices/_types/IndexSettings.ts#L425-L439" }, { "kind": "interface", @@ -129222,7 +129228,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L454-L461" + "specLocation": "indices/_types/IndexSettings.ts#L460-L467" }, { "kind": "interface", @@ -129244,7 +129250,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L491-L497" + "specLocation": "indices/_types/IndexSettings.ts#L497-L503" }, { "kind": "interface", @@ -129266,7 +129272,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L482-L489" + "specLocation": "indices/_types/IndexSettings.ts#L488-L495" }, { "kind": "interface", @@ -129289,7 +129295,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L463-L471" + "specLocation": "indices/_types/IndexSettings.ts#L469-L477" }, { "kind": "interface", @@ -129312,7 +129318,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L473-L480" + "specLocation": "indices/_types/IndexSettings.ts#L479-L486" }, { "kind": "interface", @@ -129333,7 +129339,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L499-L501" + "specLocation": "indices/_types/IndexSettings.ts#L505-L507" }, { "kind": "interface", @@ -129393,7 +129399,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L435-L452" + "specLocation": "indices/_types/IndexSettings.ts#L441-L458" }, { "kind": "interface", @@ -129414,7 +129420,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L340-L342" + "specLocation": "indices/_types/IndexSettings.ts#L346-L348" }, { "kind": "interface", @@ -129464,7 +129470,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L344-L347" + "specLocation": "indices/_types/IndexSettings.ts#L350-L353" }, { "kind": "interface", @@ -129522,7 +129528,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L411-L413" + "specLocation": "indices/_types/IndexSettings.ts#L417-L419" }, { "kind": "interface", @@ -129565,7 +129571,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L247-L250" + "specLocation": "indices/_types/IndexSettings.ts#L253-L256" }, { "kind": "enum", @@ -129658,7 +129664,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L237-L240" + "specLocation": "indices/_types/IndexSettings.ts#L243-L246" }, { "kind": "interface", @@ -129680,7 +129686,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L232-L235" + "specLocation": "indices/_types/IndexSettings.ts#L238-L241" }, { "kind": "interface", @@ -129710,7 +129716,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L252-L254" + "specLocation": "indices/_types/IndexSettings.ts#L258-L260" }, { "kind": "interface", @@ -129742,7 +129748,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L242-L245" + "specLocation": "indices/_types/IndexSettings.ts#L248-L251" }, { "kind": "type_alias", @@ -129750,7 +129756,7 @@ "name": "SettingsSimilarity", "namespace": "indices._types" }, - "specLocation": "indices/_types/IndexSettings.ts#L172-L184", + "specLocation": "indices/_types/IndexSettings.ts#L178-L190", "type": { "kind": "union_of", "items": [ @@ -129867,7 +129873,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L190-L195" + "specLocation": "indices/_types/IndexSettings.ts#L196-L201" }, { "kind": "interface", @@ -129885,7 +129891,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L186-L188" + "specLocation": "indices/_types/IndexSettings.ts#L192-L194" }, { "kind": "interface", @@ -129914,7 +129920,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L197-L200" + "specLocation": "indices/_types/IndexSettings.ts#L203-L206" }, { "kind": "interface", @@ -129965,7 +129971,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L202-L207" + "specLocation": "indices/_types/IndexSettings.ts#L208-L213" }, { "kind": "interface", @@ -130016,7 +130022,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L209-L214" + "specLocation": "indices/_types/IndexSettings.ts#L215-L220" }, { "kind": "interface", @@ -130045,7 +130051,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L216-L219" + "specLocation": "indices/_types/IndexSettings.ts#L222-L225" }, { "kind": "interface", @@ -130074,7 +130080,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L221-L224" + "specLocation": "indices/_types/IndexSettings.ts#L227-L230" }, { "kind": "interface", @@ -130114,7 +130120,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L226-L230" + "specLocation": "indices/_types/IndexSettings.ts#L232-L236" }, { "kind": "interface", @@ -130168,7 +130174,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L509-L514" + "specLocation": "indices/_types/IndexSettings.ts#L515-L520" }, { "kind": "interface", @@ -130222,7 +130228,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L521-L526" + "specLocation": "indices/_types/IndexSettings.ts#L527-L532" }, { "kind": "interface", @@ -130254,7 +130260,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L516-L519" + "specLocation": "indices/_types/IndexSettings.ts#L522-L525" }, { "kind": "interface", @@ -130308,7 +130314,7 @@ "name": "SourceMode", "namespace": "indices._types" }, - "specLocation": "indices/_types/IndexSettings.ts#L503-L507" + "specLocation": "indices/_types/IndexSettings.ts#L509-L513" }, { "kind": "interface", @@ -130341,7 +130347,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L528-L537" + "specLocation": "indices/_types/IndexSettings.ts#L534-L543" }, { "kind": "enum", @@ -130368,7 +130374,7 @@ "name": "StorageType", "namespace": "indices._types" }, - "specLocation": "indices/_types/IndexSettings.ts#L539-L567" + "specLocation": "indices/_types/IndexSettings.ts#L545-L573" }, { "kind": "interface", @@ -130525,7 +130531,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L349-L371" + "specLocation": "indices/_types/IndexSettings.ts#L355-L377" }, { "kind": "enum", @@ -130549,7 +130555,7 @@ "name": "TranslogDurability", "namespace": "indices._types" }, - "specLocation": "indices/_types/IndexSettings.ts#L373-L388" + "specLocation": "indices/_types/IndexSettings.ts#L379-L394" }, { "kind": "interface", @@ -130585,7 +130591,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L390-L409" + "specLocation": "indices/_types/IndexSettings.ts#L396-L415" }, { "kind": "enum", diff --git a/specification/indices/_types/IndexSettings.ts b/specification/indices/_types/IndexSettings.ts index 03bd00bbad..723dbbe3f7 100644 --- a/specification/indices/_types/IndexSettings.ts +++ b/specification/indices/_types/IndexSettings.ts @@ -80,9 +80,15 @@ export class IndexSettings routing_path?: string | string[] soft_deletes?: SoftDeletes sort?: IndexSegmentSort - /** @server_default 1 */ + /** + * @server_default 1 + * @availability stack + * */ number_of_shards?: integer | string // TODO: should be only int - /** @server_default 0 */ + /** + * @server_default 0 + * @availability stack + * */ number_of_replicas?: integer | string // TODO: should be only int number_of_routing_shards?: integer /** @server_default false */