From b0662586d152c4d1283c33531a8bb5c592b4792c 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 b229b82f20..35ab023d73 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -35669,26 +35669,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 0188a0f822..b318cefbaa 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -96509,7 +96509,7 @@ "name": "IndexCheckOnStartup", "namespace": "indices._types" }, - "specLocation": "indices/_types/IndexSettings.ts#L264-L271" + "specLocation": "indices/_types/IndexSettings.ts#L270-L277" }, { "kind": "enum", @@ -96645,7 +96645,7 @@ "name": "SettingsSimilarity", "namespace": "indices._types" }, - "specLocation": "indices/_types/IndexSettings.ts#L172-L184", + "specLocation": "indices/_types/IndexSettings.ts#L178-L190", "type": { "items": [ { @@ -96762,7 +96762,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L190-L195" + "specLocation": "indices/_types/IndexSettings.ts#L196-L201" }, { "kind": "interface", @@ -96780,7 +96780,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L186-L188" + "specLocation": "indices/_types/IndexSettings.ts#L192-L194" }, { "kind": "interface", @@ -96809,7 +96809,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L197-L200" + "specLocation": "indices/_types/IndexSettings.ts#L203-L206" }, { "kind": "interface", @@ -96860,7 +96860,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L202-L207" + "specLocation": "indices/_types/IndexSettings.ts#L208-L213" }, { "kind": "interface", @@ -96911,7 +96911,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L209-L214" + "specLocation": "indices/_types/IndexSettings.ts#L215-L220" }, { "kind": "interface", @@ -96940,7 +96940,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L216-L219" + "specLocation": "indices/_types/IndexSettings.ts#L222-L225" }, { "kind": "interface", @@ -96969,7 +96969,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L221-L224" + "specLocation": "indices/_types/IndexSettings.ts#L227-L230" }, { "kind": "interface", @@ -97009,7 +97009,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L226-L230" + "specLocation": "indices/_types/IndexSettings.ts#L232-L236" }, { "kind": "enum", @@ -97028,7 +97028,7 @@ "name": "SourceMode", "namespace": "indices._types" }, - "specLocation": "indices/_types/IndexSettings.ts#L503-L507" + "specLocation": "indices/_types/IndexSettings.ts#L509-L513" }, { "isOpen": true, @@ -97055,7 +97055,7 @@ "name": "StorageType", "namespace": "indices._types" }, - "specLocation": "indices/_types/IndexSettings.ts#L539-L567" + "specLocation": "indices/_types/IndexSettings.ts#L545-L573" }, { "kind": "enum", @@ -97079,7 +97079,7 @@ "name": "TranslogDurability", "namespace": "indices._types" }, - "specLocation": "indices/_types/IndexSettings.ts#L373-L388" + "specLocation": "indices/_types/IndexSettings.ts#L379-L394" }, { "kind": "enum", @@ -115109,54 +115109,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, @@ -115816,7 +115768,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L70-L170" + "specLocation": "indices/_types/IndexSettings.ts#L70-L176" }, { "kind": "interface", @@ -115992,7 +115944,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L340-L342" + "specLocation": "indices/_types/IndexSettings.ts#L346-L348" }, { "kind": "interface", @@ -116042,7 +115994,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L344-L347" + "specLocation": "indices/_types/IndexSettings.ts#L350-L353" }, { "kind": "interface", @@ -116074,7 +116026,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L242-L245" + "specLocation": "indices/_types/IndexSettings.ts#L248-L251" }, { "kind": "interface", @@ -116096,7 +116048,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L247-L250" + "specLocation": "indices/_types/IndexSettings.ts#L253-L256" }, { "kind": "interface", @@ -116150,7 +116102,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L509-L514" + "specLocation": "indices/_types/IndexSettings.ts#L515-L520" }, { "kind": "interface", @@ -116182,7 +116134,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L516-L519" + "specLocation": "indices/_types/IndexSettings.ts#L522-L525" }, { "kind": "interface", @@ -116236,7 +116188,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L521-L526" + "specLocation": "indices/_types/IndexSettings.ts#L527-L532" }, { "kind": "interface", @@ -116346,7 +116298,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L256-L262" + "specLocation": "indices/_types/IndexSettings.ts#L262-L268" }, { "kind": "interface", @@ -116377,7 +116329,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L237-L240" + "specLocation": "indices/_types/IndexSettings.ts#L243-L246" }, { "kind": "interface", @@ -116399,7 +116351,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L232-L235" + "specLocation": "indices/_types/IndexSettings.ts#L238-L241" }, { "kind": "interface", @@ -116710,7 +116662,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L278-L317" + "specLocation": "indices/_types/IndexSettings.ts#L284-L323" }, { "kind": "interface", @@ -116732,7 +116684,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L319-L325" + "specLocation": "indices/_types/IndexSettings.ts#L325-L331" }, { "kind": "interface", @@ -116764,7 +116716,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L273-L276" + "specLocation": "indices/_types/IndexSettings.ts#L279-L282" }, { "kind": "interface", @@ -116824,7 +116776,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L349-L371" + "specLocation": "indices/_types/IndexSettings.ts#L355-L377" }, { "kind": "interface", @@ -116860,7 +116812,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L390-L409" + "specLocation": "indices/_types/IndexSettings.ts#L396-L415" }, { "kind": "interface", @@ -116890,7 +116842,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L252-L254" + "specLocation": "indices/_types/IndexSettings.ts#L258-L260" }, { "kind": "interface", @@ -117010,7 +116962,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L327-L333" + "specLocation": "indices/_types/IndexSettings.ts#L333-L339" }, { "kind": "interface", @@ -117042,7 +116994,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L335-L338" + "specLocation": "indices/_types/IndexSettings.ts#L341-L344" }, { "kind": "interface", @@ -117063,7 +117015,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L411-L413" + "specLocation": "indices/_types/IndexSettings.ts#L417-L419" }, { "kind": "interface", @@ -117084,7 +117036,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L415-L417" + "specLocation": "indices/_types/IndexSettings.ts#L421-L423" }, { "description": "Mapping Limit Settings", @@ -117208,7 +117160,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L419-L433" + "specLocation": "indices/_types/IndexSettings.ts#L425-L439" }, { "kind": "interface", @@ -117268,7 +117220,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L435-L452" + "specLocation": "indices/_types/IndexSettings.ts#L441-L458" }, { "kind": "interface", @@ -117291,7 +117243,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L454-L461" + "specLocation": "indices/_types/IndexSettings.ts#L460-L467" }, { "kind": "interface", @@ -117314,7 +117266,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L463-L471" + "specLocation": "indices/_types/IndexSettings.ts#L469-L477" }, { "kind": "interface", @@ -117337,7 +117289,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L473-L480" + "specLocation": "indices/_types/IndexSettings.ts#L479-L486" }, { "kind": "interface", @@ -117359,7 +117311,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L482-L489" + "specLocation": "indices/_types/IndexSettings.ts#L488-L495" }, { "kind": "interface", @@ -117381,7 +117333,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L491-L497" + "specLocation": "indices/_types/IndexSettings.ts#L497-L503" }, { "kind": "interface", @@ -117402,7 +117354,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L499-L501" + "specLocation": "indices/_types/IndexSettings.ts#L505-L507" }, { "kind": "interface", @@ -117456,7 +117408,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L582-L587" + "specLocation": "indices/_types/IndexSettings.ts#L588-L593" }, { "kind": "interface", @@ -117480,7 +117432,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L589-L596" + "specLocation": "indices/_types/IndexSettings.ts#L595-L602" }, { "kind": "interface", @@ -117501,7 +117453,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L569-L571" + "specLocation": "indices/_types/IndexSettings.ts#L575-L577" }, { "kind": "interface", @@ -117523,7 +117475,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L573-L580" + "specLocation": "indices/_types/IndexSettings.ts#L579-L586" }, { "kind": "interface", @@ -117556,7 +117508,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 d572b8def7..a5c1661119 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -128278,7 +128278,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L415-L417" + "specLocation": "indices/_types/IndexSettings.ts#L421-L423" }, { "kind": "interface", @@ -129023,7 +129023,7 @@ "name": "IndexCheckOnStartup", "namespace": "indices._types" }, - "specLocation": "indices/_types/IndexSettings.ts#L264-L271" + "specLocation": "indices/_types/IndexSettings.ts#L270-L277" }, { "kind": "interface", @@ -129469,7 +129469,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L256-L262" + "specLocation": "indices/_types/IndexSettings.ts#L262-L268" }, { "kind": "interface", @@ -129578,6 +129578,9 @@ } }, { + "availability": { + "stack": {} + }, "name": "number_of_shards", "required": false, "serverDefault": "1", @@ -129602,6 +129605,9 @@ } }, { + "availability": { + "stack": {} + }, "name": "number_of_replicas", "required": false, "serverDefault": "0", @@ -130284,7 +130290,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L70-L170" + "specLocation": "indices/_types/IndexSettings.ts#L70-L176" }, { "kind": "interface", @@ -130404,7 +130410,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L327-L333" + "specLocation": "indices/_types/IndexSettings.ts#L333-L339" }, { "kind": "interface", @@ -130522,7 +130528,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L278-L317" + "specLocation": "indices/_types/IndexSettings.ts#L284-L323" }, { "kind": "interface", @@ -130544,7 +130550,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L319-L325" + "specLocation": "indices/_types/IndexSettings.ts#L325-L331" }, { "kind": "interface", @@ -130576,7 +130582,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L335-L338" + "specLocation": "indices/_types/IndexSettings.ts#L341-L344" }, { "kind": "interface", @@ -130965,7 +130971,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L273-L276" + "specLocation": "indices/_types/IndexSettings.ts#L279-L282" }, { "kind": "interface", @@ -130986,7 +130992,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L569-L571" + "specLocation": "indices/_types/IndexSettings.ts#L575-L577" }, { "kind": "interface", @@ -131008,7 +131014,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L573-L580" + "specLocation": "indices/_types/IndexSettings.ts#L579-L586" }, { "kind": "interface", @@ -131062,7 +131068,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L582-L587" + "specLocation": "indices/_types/IndexSettings.ts#L588-L593" }, { "kind": "interface", @@ -131086,7 +131092,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L589-L596" + "specLocation": "indices/_types/IndexSettings.ts#L595-L602" }, { "kind": "enum", @@ -131232,7 +131238,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L419-L433" + "specLocation": "indices/_types/IndexSettings.ts#L425-L439" }, { "kind": "interface", @@ -131255,7 +131261,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L454-L461" + "specLocation": "indices/_types/IndexSettings.ts#L460-L467" }, { "kind": "interface", @@ -131277,7 +131283,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L491-L497" + "specLocation": "indices/_types/IndexSettings.ts#L497-L503" }, { "kind": "interface", @@ -131299,7 +131305,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L482-L489" + "specLocation": "indices/_types/IndexSettings.ts#L488-L495" }, { "kind": "interface", @@ -131322,7 +131328,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L463-L471" + "specLocation": "indices/_types/IndexSettings.ts#L469-L477" }, { "kind": "interface", @@ -131345,7 +131351,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L473-L480" + "specLocation": "indices/_types/IndexSettings.ts#L479-L486" }, { "kind": "interface", @@ -131366,7 +131372,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L499-L501" + "specLocation": "indices/_types/IndexSettings.ts#L505-L507" }, { "kind": "interface", @@ -131426,7 +131432,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L435-L452" + "specLocation": "indices/_types/IndexSettings.ts#L441-L458" }, { "kind": "interface", @@ -131447,7 +131453,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L340-L342" + "specLocation": "indices/_types/IndexSettings.ts#L346-L348" }, { "kind": "interface", @@ -131497,7 +131503,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L344-L347" + "specLocation": "indices/_types/IndexSettings.ts#L350-L353" }, { "kind": "interface", @@ -131555,7 +131561,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L411-L413" + "specLocation": "indices/_types/IndexSettings.ts#L417-L419" }, { "kind": "interface", @@ -131598,7 +131604,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L247-L250" + "specLocation": "indices/_types/IndexSettings.ts#L253-L256" }, { "kind": "enum", @@ -131691,7 +131697,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L237-L240" + "specLocation": "indices/_types/IndexSettings.ts#L243-L246" }, { "kind": "interface", @@ -131713,7 +131719,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L232-L235" + "specLocation": "indices/_types/IndexSettings.ts#L238-L241" }, { "kind": "interface", @@ -131743,7 +131749,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L252-L254" + "specLocation": "indices/_types/IndexSettings.ts#L258-L260" }, { "kind": "interface", @@ -131775,7 +131781,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L242-L245" + "specLocation": "indices/_types/IndexSettings.ts#L248-L251" }, { "kind": "type_alias", @@ -131783,7 +131789,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": [ @@ -131900,7 +131906,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L190-L195" + "specLocation": "indices/_types/IndexSettings.ts#L196-L201" }, { "kind": "interface", @@ -131918,7 +131924,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L186-L188" + "specLocation": "indices/_types/IndexSettings.ts#L192-L194" }, { "kind": "interface", @@ -131947,7 +131953,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L197-L200" + "specLocation": "indices/_types/IndexSettings.ts#L203-L206" }, { "kind": "interface", @@ -131998,7 +132004,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L202-L207" + "specLocation": "indices/_types/IndexSettings.ts#L208-L213" }, { "kind": "interface", @@ -132049,7 +132055,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L209-L214" + "specLocation": "indices/_types/IndexSettings.ts#L215-L220" }, { "kind": "interface", @@ -132078,7 +132084,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L216-L219" + "specLocation": "indices/_types/IndexSettings.ts#L222-L225" }, { "kind": "interface", @@ -132107,7 +132113,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L221-L224" + "specLocation": "indices/_types/IndexSettings.ts#L227-L230" }, { "kind": "interface", @@ -132147,7 +132153,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L226-L230" + "specLocation": "indices/_types/IndexSettings.ts#L232-L236" }, { "kind": "interface", @@ -132201,7 +132207,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L509-L514" + "specLocation": "indices/_types/IndexSettings.ts#L515-L520" }, { "kind": "interface", @@ -132255,7 +132261,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L521-L526" + "specLocation": "indices/_types/IndexSettings.ts#L527-L532" }, { "kind": "interface", @@ -132287,7 +132293,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L516-L519" + "specLocation": "indices/_types/IndexSettings.ts#L522-L525" }, { "kind": "interface", @@ -132341,7 +132347,7 @@ "name": "SourceMode", "namespace": "indices._types" }, - "specLocation": "indices/_types/IndexSettings.ts#L503-L507" + "specLocation": "indices/_types/IndexSettings.ts#L509-L513" }, { "kind": "interface", @@ -132374,7 +132380,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L528-L537" + "specLocation": "indices/_types/IndexSettings.ts#L534-L543" }, { "kind": "enum", @@ -132401,7 +132407,7 @@ "name": "StorageType", "namespace": "indices._types" }, - "specLocation": "indices/_types/IndexSettings.ts#L539-L567" + "specLocation": "indices/_types/IndexSettings.ts#L545-L573" }, { "kind": "interface", @@ -132558,7 +132564,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L349-L371" + "specLocation": "indices/_types/IndexSettings.ts#L355-L377" }, { "kind": "enum", @@ -132582,7 +132588,7 @@ "name": "TranslogDurability", "namespace": "indices._types" }, - "specLocation": "indices/_types/IndexSettings.ts#L373-L388" + "specLocation": "indices/_types/IndexSettings.ts#L379-L394" }, { "kind": "interface", @@ -132618,7 +132624,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 */