From 3212abc7e21e58037172f5b4bb3d03b36ca338d9 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 22559468cc..387e3684e5 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 7d192cfb54..0be9cc68e4 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -96646,7 +96646,7 @@ "name": "IndexCheckOnStartup", "namespace": "indices._types" }, - "specLocation": "indices/_types/IndexSettings.ts#L264-L271" + "specLocation": "indices/_types/IndexSettings.ts#L270-L277" }, { "kind": "enum", @@ -96782,7 +96782,7 @@ "name": "SettingsSimilarity", "namespace": "indices._types" }, - "specLocation": "indices/_types/IndexSettings.ts#L172-L184", + "specLocation": "indices/_types/IndexSettings.ts#L178-L190", "type": { "items": [ { @@ -96899,7 +96899,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L190-L195" + "specLocation": "indices/_types/IndexSettings.ts#L196-L201" }, { "kind": "interface", @@ -96917,7 +96917,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L186-L188" + "specLocation": "indices/_types/IndexSettings.ts#L192-L194" }, { "kind": "interface", @@ -96946,7 +96946,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L197-L200" + "specLocation": "indices/_types/IndexSettings.ts#L203-L206" }, { "kind": "interface", @@ -96997,7 +96997,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L202-L207" + "specLocation": "indices/_types/IndexSettings.ts#L208-L213" }, { "kind": "interface", @@ -97048,7 +97048,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L209-L214" + "specLocation": "indices/_types/IndexSettings.ts#L215-L220" }, { "kind": "interface", @@ -97077,7 +97077,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L216-L219" + "specLocation": "indices/_types/IndexSettings.ts#L222-L225" }, { "kind": "interface", @@ -97106,7 +97106,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L221-L224" + "specLocation": "indices/_types/IndexSettings.ts#L227-L230" }, { "kind": "interface", @@ -97146,7 +97146,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L226-L230" + "specLocation": "indices/_types/IndexSettings.ts#L232-L236" }, { "kind": "enum", @@ -97165,7 +97165,7 @@ "name": "SourceMode", "namespace": "indices._types" }, - "specLocation": "indices/_types/IndexSettings.ts#L503-L507" + "specLocation": "indices/_types/IndexSettings.ts#L509-L513" }, { "isOpen": true, @@ -97192,7 +97192,7 @@ "name": "StorageType", "namespace": "indices._types" }, - "specLocation": "indices/_types/IndexSettings.ts#L539-L567" + "specLocation": "indices/_types/IndexSettings.ts#L545-L573" }, { "kind": "enum", @@ -97216,7 +97216,7 @@ "name": "TranslogDurability", "namespace": "indices._types" }, - "specLocation": "indices/_types/IndexSettings.ts#L373-L388" + "specLocation": "indices/_types/IndexSettings.ts#L379-L394" }, { "kind": "enum", @@ -115272,54 +115272,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, @@ -115979,7 +115931,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L70-L170" + "specLocation": "indices/_types/IndexSettings.ts#L70-L176" }, { "kind": "interface", @@ -116155,7 +116107,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L340-L342" + "specLocation": "indices/_types/IndexSettings.ts#L346-L348" }, { "kind": "interface", @@ -116205,7 +116157,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L344-L347" + "specLocation": "indices/_types/IndexSettings.ts#L350-L353" }, { "kind": "interface", @@ -116237,7 +116189,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L242-L245" + "specLocation": "indices/_types/IndexSettings.ts#L248-L251" }, { "kind": "interface", @@ -116259,7 +116211,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L247-L250" + "specLocation": "indices/_types/IndexSettings.ts#L253-L256" }, { "kind": "interface", @@ -116313,7 +116265,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L509-L514" + "specLocation": "indices/_types/IndexSettings.ts#L515-L520" }, { "kind": "interface", @@ -116345,7 +116297,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L516-L519" + "specLocation": "indices/_types/IndexSettings.ts#L522-L525" }, { "kind": "interface", @@ -116399,7 +116351,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L521-L526" + "specLocation": "indices/_types/IndexSettings.ts#L527-L532" }, { "kind": "interface", @@ -116509,7 +116461,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L256-L262" + "specLocation": "indices/_types/IndexSettings.ts#L262-L268" }, { "kind": "interface", @@ -116540,7 +116492,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L237-L240" + "specLocation": "indices/_types/IndexSettings.ts#L243-L246" }, { "kind": "interface", @@ -116562,7 +116514,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L232-L235" + "specLocation": "indices/_types/IndexSettings.ts#L238-L241" }, { "kind": "interface", @@ -116873,7 +116825,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L278-L317" + "specLocation": "indices/_types/IndexSettings.ts#L284-L323" }, { "kind": "interface", @@ -116895,7 +116847,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L319-L325" + "specLocation": "indices/_types/IndexSettings.ts#L325-L331" }, { "kind": "interface", @@ -116927,7 +116879,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L273-L276" + "specLocation": "indices/_types/IndexSettings.ts#L279-L282" }, { "kind": "interface", @@ -116987,7 +116939,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L349-L371" + "specLocation": "indices/_types/IndexSettings.ts#L355-L377" }, { "kind": "interface", @@ -117023,7 +116975,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L390-L409" + "specLocation": "indices/_types/IndexSettings.ts#L396-L415" }, { "kind": "interface", @@ -117053,7 +117005,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L252-L254" + "specLocation": "indices/_types/IndexSettings.ts#L258-L260" }, { "kind": "interface", @@ -117173,7 +117125,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L327-L333" + "specLocation": "indices/_types/IndexSettings.ts#L333-L339" }, { "kind": "interface", @@ -117205,7 +117157,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L335-L338" + "specLocation": "indices/_types/IndexSettings.ts#L341-L344" }, { "kind": "interface", @@ -117226,7 +117178,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L411-L413" + "specLocation": "indices/_types/IndexSettings.ts#L417-L419" }, { "kind": "interface", @@ -117247,7 +117199,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L415-L417" + "specLocation": "indices/_types/IndexSettings.ts#L421-L423" }, { "description": "Mapping Limit Settings", @@ -117371,7 +117323,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L419-L433" + "specLocation": "indices/_types/IndexSettings.ts#L425-L439" }, { "kind": "interface", @@ -117431,7 +117383,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L435-L452" + "specLocation": "indices/_types/IndexSettings.ts#L441-L458" }, { "kind": "interface", @@ -117454,7 +117406,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L454-L461" + "specLocation": "indices/_types/IndexSettings.ts#L460-L467" }, { "kind": "interface", @@ -117477,7 +117429,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L463-L471" + "specLocation": "indices/_types/IndexSettings.ts#L469-L477" }, { "kind": "interface", @@ -117500,7 +117452,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L473-L480" + "specLocation": "indices/_types/IndexSettings.ts#L479-L486" }, { "kind": "interface", @@ -117522,7 +117474,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L482-L489" + "specLocation": "indices/_types/IndexSettings.ts#L488-L495" }, { "kind": "interface", @@ -117544,7 +117496,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L491-L497" + "specLocation": "indices/_types/IndexSettings.ts#L497-L503" }, { "kind": "interface", @@ -117565,7 +117517,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L499-L501" + "specLocation": "indices/_types/IndexSettings.ts#L505-L507" }, { "kind": "interface", @@ -117619,7 +117571,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L582-L587" + "specLocation": "indices/_types/IndexSettings.ts#L588-L593" }, { "kind": "interface", @@ -117643,7 +117595,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L589-L596" + "specLocation": "indices/_types/IndexSettings.ts#L595-L602" }, { "kind": "interface", @@ -117664,7 +117616,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L569-L571" + "specLocation": "indices/_types/IndexSettings.ts#L575-L577" }, { "kind": "interface", @@ -117686,7 +117638,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L573-L580" + "specLocation": "indices/_types/IndexSettings.ts#L579-L586" }, { "kind": "interface", @@ -117719,7 +117671,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 f32fc631d5..3ebce4876f 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -128277,7 +128277,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L415-L417" + "specLocation": "indices/_types/IndexSettings.ts#L421-L423" }, { "kind": "interface", @@ -129022,7 +129022,7 @@ "name": "IndexCheckOnStartup", "namespace": "indices._types" }, - "specLocation": "indices/_types/IndexSettings.ts#L264-L271" + "specLocation": "indices/_types/IndexSettings.ts#L270-L277" }, { "kind": "interface", @@ -129468,7 +129468,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L256-L262" + "specLocation": "indices/_types/IndexSettings.ts#L262-L268" }, { "kind": "interface", @@ -129577,6 +129577,9 @@ } }, { + "availability": { + "stack": {} + }, "name": "number_of_shards", "required": false, "serverDefault": "1", @@ -129601,6 +129604,9 @@ } }, { + "availability": { + "stack": {} + }, "name": "number_of_replicas", "required": false, "serverDefault": "0", @@ -130283,7 +130289,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L70-L170" + "specLocation": "indices/_types/IndexSettings.ts#L70-L176" }, { "kind": "interface", @@ -130403,7 +130409,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L327-L333" + "specLocation": "indices/_types/IndexSettings.ts#L333-L339" }, { "kind": "interface", @@ -130521,7 +130527,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L278-L317" + "specLocation": "indices/_types/IndexSettings.ts#L284-L323" }, { "kind": "interface", @@ -130543,7 +130549,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L319-L325" + "specLocation": "indices/_types/IndexSettings.ts#L325-L331" }, { "kind": "interface", @@ -130575,7 +130581,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L335-L338" + "specLocation": "indices/_types/IndexSettings.ts#L341-L344" }, { "kind": "interface", @@ -130964,7 +130970,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L273-L276" + "specLocation": "indices/_types/IndexSettings.ts#L279-L282" }, { "kind": "interface", @@ -130985,7 +130991,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L569-L571" + "specLocation": "indices/_types/IndexSettings.ts#L575-L577" }, { "kind": "interface", @@ -131007,7 +131013,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L573-L580" + "specLocation": "indices/_types/IndexSettings.ts#L579-L586" }, { "kind": "interface", @@ -131061,7 +131067,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L582-L587" + "specLocation": "indices/_types/IndexSettings.ts#L588-L593" }, { "kind": "interface", @@ -131085,7 +131091,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L589-L596" + "specLocation": "indices/_types/IndexSettings.ts#L595-L602" }, { "kind": "enum", @@ -131231,7 +131237,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L419-L433" + "specLocation": "indices/_types/IndexSettings.ts#L425-L439" }, { "kind": "interface", @@ -131254,7 +131260,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L454-L461" + "specLocation": "indices/_types/IndexSettings.ts#L460-L467" }, { "kind": "interface", @@ -131276,7 +131282,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L491-L497" + "specLocation": "indices/_types/IndexSettings.ts#L497-L503" }, { "kind": "interface", @@ -131298,7 +131304,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L482-L489" + "specLocation": "indices/_types/IndexSettings.ts#L488-L495" }, { "kind": "interface", @@ -131321,7 +131327,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L463-L471" + "specLocation": "indices/_types/IndexSettings.ts#L469-L477" }, { "kind": "interface", @@ -131344,7 +131350,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L473-L480" + "specLocation": "indices/_types/IndexSettings.ts#L479-L486" }, { "kind": "interface", @@ -131365,7 +131371,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L499-L501" + "specLocation": "indices/_types/IndexSettings.ts#L505-L507" }, { "kind": "interface", @@ -131425,7 +131431,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L435-L452" + "specLocation": "indices/_types/IndexSettings.ts#L441-L458" }, { "kind": "interface", @@ -131446,7 +131452,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L340-L342" + "specLocation": "indices/_types/IndexSettings.ts#L346-L348" }, { "kind": "interface", @@ -131496,7 +131502,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L344-L347" + "specLocation": "indices/_types/IndexSettings.ts#L350-L353" }, { "kind": "interface", @@ -131554,7 +131560,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L411-L413" + "specLocation": "indices/_types/IndexSettings.ts#L417-L419" }, { "kind": "interface", @@ -131597,7 +131603,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L247-L250" + "specLocation": "indices/_types/IndexSettings.ts#L253-L256" }, { "kind": "enum", @@ -131690,7 +131696,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L237-L240" + "specLocation": "indices/_types/IndexSettings.ts#L243-L246" }, { "kind": "interface", @@ -131712,7 +131718,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L232-L235" + "specLocation": "indices/_types/IndexSettings.ts#L238-L241" }, { "kind": "interface", @@ -131742,7 +131748,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L252-L254" + "specLocation": "indices/_types/IndexSettings.ts#L258-L260" }, { "kind": "interface", @@ -131774,7 +131780,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L242-L245" + "specLocation": "indices/_types/IndexSettings.ts#L248-L251" }, { "kind": "type_alias", @@ -131782,7 +131788,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": [ @@ -131899,7 +131905,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L190-L195" + "specLocation": "indices/_types/IndexSettings.ts#L196-L201" }, { "kind": "interface", @@ -131917,7 +131923,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L186-L188" + "specLocation": "indices/_types/IndexSettings.ts#L192-L194" }, { "kind": "interface", @@ -131946,7 +131952,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L197-L200" + "specLocation": "indices/_types/IndexSettings.ts#L203-L206" }, { "kind": "interface", @@ -131997,7 +132003,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L202-L207" + "specLocation": "indices/_types/IndexSettings.ts#L208-L213" }, { "kind": "interface", @@ -132048,7 +132054,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L209-L214" + "specLocation": "indices/_types/IndexSettings.ts#L215-L220" }, { "kind": "interface", @@ -132077,7 +132083,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L216-L219" + "specLocation": "indices/_types/IndexSettings.ts#L222-L225" }, { "kind": "interface", @@ -132106,7 +132112,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L221-L224" + "specLocation": "indices/_types/IndexSettings.ts#L227-L230" }, { "kind": "interface", @@ -132146,7 +132152,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L226-L230" + "specLocation": "indices/_types/IndexSettings.ts#L232-L236" }, { "kind": "interface", @@ -132200,7 +132206,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L509-L514" + "specLocation": "indices/_types/IndexSettings.ts#L515-L520" }, { "kind": "interface", @@ -132254,7 +132260,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L521-L526" + "specLocation": "indices/_types/IndexSettings.ts#L527-L532" }, { "kind": "interface", @@ -132286,7 +132292,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L516-L519" + "specLocation": "indices/_types/IndexSettings.ts#L522-L525" }, { "kind": "interface", @@ -132340,7 +132346,7 @@ "name": "SourceMode", "namespace": "indices._types" }, - "specLocation": "indices/_types/IndexSettings.ts#L503-L507" + "specLocation": "indices/_types/IndexSettings.ts#L509-L513" }, { "kind": "interface", @@ -132373,7 +132379,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L528-L537" + "specLocation": "indices/_types/IndexSettings.ts#L534-L543" }, { "kind": "enum", @@ -132400,7 +132406,7 @@ "name": "StorageType", "namespace": "indices._types" }, - "specLocation": "indices/_types/IndexSettings.ts#L539-L567" + "specLocation": "indices/_types/IndexSettings.ts#L545-L573" }, { "kind": "interface", @@ -132557,7 +132563,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L349-L371" + "specLocation": "indices/_types/IndexSettings.ts#L355-L377" }, { "kind": "enum", @@ -132581,7 +132587,7 @@ "name": "TranslogDurability", "namespace": "indices._types" }, - "specLocation": "indices/_types/IndexSettings.ts#L373-L388" + "specLocation": "indices/_types/IndexSettings.ts#L379-L394" }, { "kind": "interface", @@ -132617,7 +132623,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 */