From d00df84577bf10da1affd883ba1a00bf48ebb05f Mon Sep 17 00:00:00 2001 From: Laura Trotta Date: Tue, 4 Feb 2025 16:12:14 +0100 Subject: [PATCH] allowing custom similarities --- output/schema/schema-serverless.json | 93 ++++++++++--------- output/schema/schema.json | 93 ++++++++++--------- specification/indices/_types/IndexSettings.ts | 1 + 3 files changed, 95 insertions(+), 92 deletions(-) diff --git a/output/schema/schema-serverless.json b/output/schema/schema-serverless.json index 5d818b7198..95490701de 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -95529,7 +95529,7 @@ "name": "IndexCheckOnStartup", "namespace": "indices._types" }, - "specLocation": "indices/_types/IndexSettings.ts#L262-L269" + "specLocation": "indices/_types/IndexSettings.ts#L263-L270" }, { "kind": "enum", @@ -95665,7 +95665,7 @@ "name": "SettingsSimilarity", "namespace": "indices._types" }, - "specLocation": "indices/_types/IndexSettings.ts#L171-L182", + "specLocation": "indices/_types/IndexSettings.ts#L171-L183", "type": { "items": [ { @@ -95729,6 +95729,7 @@ }, "variants": { "kind": "internal_tag", + "nonExhaustive": true, "tag": "type" } }, @@ -95781,7 +95782,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L188-L193" + "specLocation": "indices/_types/IndexSettings.ts#L189-L194" }, { "kind": "interface", @@ -95799,7 +95800,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L184-L186" + "specLocation": "indices/_types/IndexSettings.ts#L185-L187" }, { "kind": "interface", @@ -95828,7 +95829,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L195-L198" + "specLocation": "indices/_types/IndexSettings.ts#L196-L199" }, { "kind": "interface", @@ -95879,7 +95880,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L200-L205" + "specLocation": "indices/_types/IndexSettings.ts#L201-L206" }, { "kind": "interface", @@ -95930,7 +95931,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L207-L212" + "specLocation": "indices/_types/IndexSettings.ts#L208-L213" }, { "kind": "interface", @@ -95959,7 +95960,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L214-L217" + "specLocation": "indices/_types/IndexSettings.ts#L215-L218" }, { "kind": "interface", @@ -95988,7 +95989,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L219-L222" + "specLocation": "indices/_types/IndexSettings.ts#L220-L223" }, { "kind": "interface", @@ -96028,7 +96029,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L224-L228" + "specLocation": "indices/_types/IndexSettings.ts#L225-L229" }, { "kind": "enum", @@ -96047,7 +96048,7 @@ "name": "SourceMode", "namespace": "indices._types" }, - "specLocation": "indices/_types/IndexSettings.ts#L501-L505" + "specLocation": "indices/_types/IndexSettings.ts#L502-L506" }, { "isOpen": true, @@ -96074,7 +96075,7 @@ "name": "StorageType", "namespace": "indices._types" }, - "specLocation": "indices/_types/IndexSettings.ts#L537-L565" + "specLocation": "indices/_types/IndexSettings.ts#L538-L566" }, { "kind": "enum", @@ -96098,7 +96099,7 @@ "name": "TranslogDurability", "namespace": "indices._types" }, - "specLocation": "indices/_types/IndexSettings.ts#L371-L386" + "specLocation": "indices/_types/IndexSettings.ts#L372-L387" }, { "kind": "enum", @@ -115220,7 +115221,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L338-L340" + "specLocation": "indices/_types/IndexSettings.ts#L339-L341" }, { "kind": "interface", @@ -115270,7 +115271,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L342-L345" + "specLocation": "indices/_types/IndexSettings.ts#L343-L346" }, { "kind": "interface", @@ -115302,7 +115303,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L240-L243" + "specLocation": "indices/_types/IndexSettings.ts#L241-L244" }, { "kind": "interface", @@ -115324,7 +115325,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L245-L248" + "specLocation": "indices/_types/IndexSettings.ts#L246-L249" }, { "kind": "interface", @@ -115378,7 +115379,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L507-L512" + "specLocation": "indices/_types/IndexSettings.ts#L508-L513" }, { "kind": "interface", @@ -115410,7 +115411,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L514-L517" + "specLocation": "indices/_types/IndexSettings.ts#L515-L518" }, { "kind": "interface", @@ -115464,7 +115465,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L519-L524" + "specLocation": "indices/_types/IndexSettings.ts#L520-L525" }, { "kind": "interface", @@ -115574,7 +115575,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L254-L260" + "specLocation": "indices/_types/IndexSettings.ts#L255-L261" }, { "kind": "interface", @@ -115605,7 +115606,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L235-L238" + "specLocation": "indices/_types/IndexSettings.ts#L236-L239" }, { "kind": "interface", @@ -115627,7 +115628,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L230-L233" + "specLocation": "indices/_types/IndexSettings.ts#L231-L234" }, { "kind": "interface", @@ -115938,7 +115939,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L276-L315" + "specLocation": "indices/_types/IndexSettings.ts#L277-L316" }, { "kind": "interface", @@ -115960,7 +115961,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L317-L323" + "specLocation": "indices/_types/IndexSettings.ts#L318-L324" }, { "kind": "interface", @@ -115992,7 +115993,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L271-L274" + "specLocation": "indices/_types/IndexSettings.ts#L272-L275" }, { "kind": "interface", @@ -116052,7 +116053,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L347-L369" + "specLocation": "indices/_types/IndexSettings.ts#L348-L370" }, { "kind": "interface", @@ -116088,7 +116089,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L388-L407" + "specLocation": "indices/_types/IndexSettings.ts#L389-L408" }, { "kind": "interface", @@ -116118,7 +116119,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L250-L252" + "specLocation": "indices/_types/IndexSettings.ts#L251-L253" }, { "kind": "interface", @@ -116238,7 +116239,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L325-L331" + "specLocation": "indices/_types/IndexSettings.ts#L326-L332" }, { "kind": "interface", @@ -116270,7 +116271,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L333-L336" + "specLocation": "indices/_types/IndexSettings.ts#L334-L337" }, { "kind": "interface", @@ -116291,7 +116292,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L409-L411" + "specLocation": "indices/_types/IndexSettings.ts#L410-L412" }, { "kind": "interface", @@ -116312,7 +116313,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L413-L415" + "specLocation": "indices/_types/IndexSettings.ts#L414-L416" }, { "description": "Mapping Limit Settings", @@ -116436,7 +116437,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L417-L431" + "specLocation": "indices/_types/IndexSettings.ts#L418-L432" }, { "kind": "interface", @@ -116496,7 +116497,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L433-L450" + "specLocation": "indices/_types/IndexSettings.ts#L434-L451" }, { "kind": "interface", @@ -116519,7 +116520,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L452-L459" + "specLocation": "indices/_types/IndexSettings.ts#L453-L460" }, { "kind": "interface", @@ -116542,7 +116543,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L461-L469" + "specLocation": "indices/_types/IndexSettings.ts#L462-L470" }, { "kind": "interface", @@ -116565,7 +116566,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L471-L478" + "specLocation": "indices/_types/IndexSettings.ts#L472-L479" }, { "kind": "interface", @@ -116587,7 +116588,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L480-L487" + "specLocation": "indices/_types/IndexSettings.ts#L481-L488" }, { "kind": "interface", @@ -116609,7 +116610,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L489-L495" + "specLocation": "indices/_types/IndexSettings.ts#L490-L496" }, { "kind": "interface", @@ -116630,7 +116631,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L497-L499" + "specLocation": "indices/_types/IndexSettings.ts#L498-L500" }, { "kind": "interface", @@ -116684,7 +116685,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L580-L585" + "specLocation": "indices/_types/IndexSettings.ts#L581-L586" }, { "kind": "interface", @@ -116708,7 +116709,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L587-L594" + "specLocation": "indices/_types/IndexSettings.ts#L588-L595" }, { "kind": "interface", @@ -116729,7 +116730,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L567-L569" + "specLocation": "indices/_types/IndexSettings.ts#L568-L570" }, { "kind": "interface", @@ -116751,7 +116752,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L571-L578" + "specLocation": "indices/_types/IndexSettings.ts#L572-L579" }, { "kind": "interface", @@ -116784,7 +116785,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L526-L535" + "specLocation": "indices/_types/IndexSettings.ts#L527-L536" }, { "kind": "interface", diff --git a/output/schema/schema.json b/output/schema/schema.json index 3b7a446e37..eb2a82f9a2 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -127493,7 +127493,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L413-L415" + "specLocation": "indices/_types/IndexSettings.ts#L414-L416" }, { "kind": "interface", @@ -128238,7 +128238,7 @@ "name": "IndexCheckOnStartup", "namespace": "indices._types" }, - "specLocation": "indices/_types/IndexSettings.ts#L262-L269" + "specLocation": "indices/_types/IndexSettings.ts#L263-L270" }, { "kind": "interface", @@ -128684,7 +128684,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L254-L260" + "specLocation": "indices/_types/IndexSettings.ts#L255-L261" }, { "kind": "interface", @@ -129610,7 +129610,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L325-L331" + "specLocation": "indices/_types/IndexSettings.ts#L326-L332" }, { "kind": "interface", @@ -129728,7 +129728,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L276-L315" + "specLocation": "indices/_types/IndexSettings.ts#L277-L316" }, { "kind": "interface", @@ -129750,7 +129750,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L317-L323" + "specLocation": "indices/_types/IndexSettings.ts#L318-L324" }, { "kind": "interface", @@ -129782,7 +129782,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L333-L336" + "specLocation": "indices/_types/IndexSettings.ts#L334-L337" }, { "kind": "interface", @@ -130171,7 +130171,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L271-L274" + "specLocation": "indices/_types/IndexSettings.ts#L272-L275" }, { "kind": "interface", @@ -130192,7 +130192,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L567-L569" + "specLocation": "indices/_types/IndexSettings.ts#L568-L570" }, { "kind": "interface", @@ -130214,7 +130214,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L571-L578" + "specLocation": "indices/_types/IndexSettings.ts#L572-L579" }, { "kind": "interface", @@ -130268,7 +130268,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L580-L585" + "specLocation": "indices/_types/IndexSettings.ts#L581-L586" }, { "kind": "interface", @@ -130292,7 +130292,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L587-L594" + "specLocation": "indices/_types/IndexSettings.ts#L588-L595" }, { "kind": "enum", @@ -130438,7 +130438,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L417-L431" + "specLocation": "indices/_types/IndexSettings.ts#L418-L432" }, { "kind": "interface", @@ -130461,7 +130461,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L452-L459" + "specLocation": "indices/_types/IndexSettings.ts#L453-L460" }, { "kind": "interface", @@ -130483,7 +130483,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L489-L495" + "specLocation": "indices/_types/IndexSettings.ts#L490-L496" }, { "kind": "interface", @@ -130505,7 +130505,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L480-L487" + "specLocation": "indices/_types/IndexSettings.ts#L481-L488" }, { "kind": "interface", @@ -130528,7 +130528,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L461-L469" + "specLocation": "indices/_types/IndexSettings.ts#L462-L470" }, { "kind": "interface", @@ -130551,7 +130551,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L471-L478" + "specLocation": "indices/_types/IndexSettings.ts#L472-L479" }, { "kind": "interface", @@ -130572,7 +130572,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L497-L499" + "specLocation": "indices/_types/IndexSettings.ts#L498-L500" }, { "kind": "interface", @@ -130632,7 +130632,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L433-L450" + "specLocation": "indices/_types/IndexSettings.ts#L434-L451" }, { "kind": "interface", @@ -130653,7 +130653,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L338-L340" + "specLocation": "indices/_types/IndexSettings.ts#L339-L341" }, { "kind": "interface", @@ -130703,7 +130703,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L342-L345" + "specLocation": "indices/_types/IndexSettings.ts#L343-L346" }, { "kind": "interface", @@ -130761,7 +130761,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L409-L411" + "specLocation": "indices/_types/IndexSettings.ts#L410-L412" }, { "kind": "interface", @@ -130804,7 +130804,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L245-L248" + "specLocation": "indices/_types/IndexSettings.ts#L246-L249" }, { "kind": "enum", @@ -130897,7 +130897,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L235-L238" + "specLocation": "indices/_types/IndexSettings.ts#L236-L239" }, { "kind": "interface", @@ -130919,7 +130919,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L230-L233" + "specLocation": "indices/_types/IndexSettings.ts#L231-L234" }, { "kind": "interface", @@ -130949,7 +130949,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L250-L252" + "specLocation": "indices/_types/IndexSettings.ts#L251-L253" }, { "kind": "interface", @@ -130981,7 +130981,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L240-L243" + "specLocation": "indices/_types/IndexSettings.ts#L241-L244" }, { "kind": "type_alias", @@ -130989,7 +130989,7 @@ "name": "SettingsSimilarity", "namespace": "indices._types" }, - "specLocation": "indices/_types/IndexSettings.ts#L171-L182", + "specLocation": "indices/_types/IndexSettings.ts#L171-L183", "type": { "kind": "union_of", "items": [ @@ -131053,6 +131053,7 @@ }, "variants": { "kind": "internal_tag", + "nonExhaustive": true, "tag": "type" } }, @@ -131105,7 +131106,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L188-L193" + "specLocation": "indices/_types/IndexSettings.ts#L189-L194" }, { "kind": "interface", @@ -131123,7 +131124,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L184-L186" + "specLocation": "indices/_types/IndexSettings.ts#L185-L187" }, { "kind": "interface", @@ -131152,7 +131153,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L195-L198" + "specLocation": "indices/_types/IndexSettings.ts#L196-L199" }, { "kind": "interface", @@ -131203,7 +131204,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L200-L205" + "specLocation": "indices/_types/IndexSettings.ts#L201-L206" }, { "kind": "interface", @@ -131254,7 +131255,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L207-L212" + "specLocation": "indices/_types/IndexSettings.ts#L208-L213" }, { "kind": "interface", @@ -131283,7 +131284,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L214-L217" + "specLocation": "indices/_types/IndexSettings.ts#L215-L218" }, { "kind": "interface", @@ -131312,7 +131313,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L219-L222" + "specLocation": "indices/_types/IndexSettings.ts#L220-L223" }, { "kind": "interface", @@ -131352,7 +131353,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L224-L228" + "specLocation": "indices/_types/IndexSettings.ts#L225-L229" }, { "kind": "interface", @@ -131406,7 +131407,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L507-L512" + "specLocation": "indices/_types/IndexSettings.ts#L508-L513" }, { "kind": "interface", @@ -131460,7 +131461,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L519-L524" + "specLocation": "indices/_types/IndexSettings.ts#L520-L525" }, { "kind": "interface", @@ -131492,7 +131493,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L514-L517" + "specLocation": "indices/_types/IndexSettings.ts#L515-L518" }, { "kind": "interface", @@ -131546,7 +131547,7 @@ "name": "SourceMode", "namespace": "indices._types" }, - "specLocation": "indices/_types/IndexSettings.ts#L501-L505" + "specLocation": "indices/_types/IndexSettings.ts#L502-L506" }, { "kind": "interface", @@ -131579,7 +131580,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L526-L535" + "specLocation": "indices/_types/IndexSettings.ts#L527-L536" }, { "kind": "enum", @@ -131606,7 +131607,7 @@ "name": "StorageType", "namespace": "indices._types" }, - "specLocation": "indices/_types/IndexSettings.ts#L537-L565" + "specLocation": "indices/_types/IndexSettings.ts#L538-L566" }, { "kind": "interface", @@ -131763,7 +131764,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L347-L369" + "specLocation": "indices/_types/IndexSettings.ts#L348-L370" }, { "kind": "enum", @@ -131787,7 +131788,7 @@ "name": "TranslogDurability", "namespace": "indices._types" }, - "specLocation": "indices/_types/IndexSettings.ts#L371-L386" + "specLocation": "indices/_types/IndexSettings.ts#L372-L387" }, { "kind": "interface", @@ -131823,7 +131824,7 @@ } } ], - "specLocation": "indices/_types/IndexSettings.ts#L388-L407" + "specLocation": "indices/_types/IndexSettings.ts#L389-L408" }, { "kind": "enum", diff --git a/specification/indices/_types/IndexSettings.ts b/specification/indices/_types/IndexSettings.ts index b2d19a6ec2..2680da8bbc 100644 --- a/specification/indices/_types/IndexSettings.ts +++ b/specification/indices/_types/IndexSettings.ts @@ -170,6 +170,7 @@ export class IndexSettings /** * @variants internal tag='type' + * @non_exhaustive */ export type SettingsSimilarity = | SettingsSimilarityBm25