diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/GetResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/GetResponse.g.cs index b00ff137c4c..6991ba6a6f9 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/GetResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/GetResponse.g.cs @@ -34,6 +34,8 @@ public sealed partial class GetResponse : ElasticsearchResponse public bool Found { get; init; } [JsonInclude, JsonPropertyName("_id")] public string Id { get; init; } + [JsonInclude, JsonPropertyName("_ignored")] + public IReadOnlyCollection? Ignored { get; init; } [JsonInclude, JsonPropertyName("_index")] public string Index { get; init; } [JsonInclude, JsonPropertyName("_primary_term")] diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Nodes/HotThreadsResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Nodes/HotThreadsResponse.g.cs index 2ff84f8c9c2..12ae0ee843d 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Nodes/HotThreadsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Nodes/HotThreadsResponse.g.cs @@ -28,6 +28,4 @@ namespace Elastic.Clients.Elasticsearch.Serverless.Nodes; public sealed partial class HotThreadsResponse : ElasticsearchResponse { - [JsonInclude, JsonPropertyName("hot_threads")] - public IReadOnlyCollection HotThreads { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/PutSynonymRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/PutSynonymRequest.g.cs index c670e0332d1..0c0999eee4e 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/PutSynonymRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/PutSynonymRequest.g.cs @@ -58,6 +58,7 @@ public PutSynonymRequest(Elastic.Clients.Elasticsearch.Serverless.Id id) : base( /// /// [JsonInclude, JsonPropertyName("synonyms_set")] + [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.Synonyms.SynonymRule))] public ICollection SynonymsSet { get; set; } } @@ -140,32 +141,30 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o if (SynonymsSetDescriptor is not null) { writer.WritePropertyName("synonyms_set"); - writer.WriteStartArray(); JsonSerializer.Serialize(writer, SynonymsSetDescriptor, options); - writer.WriteEndArray(); } else if (SynonymsSetDescriptorAction is not null) { writer.WritePropertyName("synonyms_set"); - writer.WriteStartArray(); JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Synonyms.SynonymRuleDescriptor(SynonymsSetDescriptorAction), options); - writer.WriteEndArray(); } else if (SynonymsSetDescriptorActions is not null) { writer.WritePropertyName("synonyms_set"); - writer.WriteStartArray(); + if (SynonymsSetDescriptorActions.Length != 1) + writer.WriteStartArray(); foreach (var action in SynonymsSetDescriptorActions) { JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Synonyms.SynonymRuleDescriptor(action), options); } - writer.WriteEndArray(); + if (SynonymsSetDescriptorActions.Length != 1) + writer.WriteEndArray(); } else { writer.WritePropertyName("synonyms_set"); - JsonSerializer.Serialize(writer, SynonymsSetValue, options); + SingleOrManySerializationHelper.Serialize(SynonymsSetValue, writer, options); } writer.WriteEndObject(); @@ -251,32 +250,30 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o if (SynonymsSetDescriptor is not null) { writer.WritePropertyName("synonyms_set"); - writer.WriteStartArray(); JsonSerializer.Serialize(writer, SynonymsSetDescriptor, options); - writer.WriteEndArray(); } else if (SynonymsSetDescriptorAction is not null) { writer.WritePropertyName("synonyms_set"); - writer.WriteStartArray(); JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Synonyms.SynonymRuleDescriptor(SynonymsSetDescriptorAction), options); - writer.WriteEndArray(); } else if (SynonymsSetDescriptorActions is not null) { writer.WritePropertyName("synonyms_set"); - writer.WriteStartArray(); + if (SynonymsSetDescriptorActions.Length != 1) + writer.WriteStartArray(); foreach (var action in SynonymsSetDescriptorActions) { JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Synonyms.SynonymRuleDescriptor(action), options); } - writer.WriteEndArray(); + if (SynonymsSetDescriptorActions.Length != 1) + writer.WriteEndArray(); } else { writer.WritePropertyName("synonyms_set"); - JsonSerializer.Serialize(writer, SynonymsSetValue, options); + SingleOrManySerializationHelper.Serialize(SynonymsSetValue, writer, options); } writer.WriteEndObject(); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateByQueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateByQueryRequest.g.cs index 4922a189bde..880cd1eeda2 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateByQueryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateByQueryRequest.g.cs @@ -116,6 +116,13 @@ public sealed partial class UpdateByQueryRequestParameters : RequestParameters /// public string? Preference { get => Q("preference"); set => Q("preference", value); } + /// + /// + /// Query in the Lucene query string syntax. + /// + /// + public string? QueryLuceneSyntax { get => Q("q"); set => Q("q", value); } + /// /// /// If true, Elasticsearch refreshes affected shards to make the operation visible to search. @@ -360,6 +367,14 @@ public UpdateByQueryRequest(Elastic.Clients.Elasticsearch.Serverless.Indices ind [JsonIgnore] public string? Preference { get => Q("preference"); set => Q("preference", value); } + /// + /// + /// Query in the Lucene query string syntax. + /// + /// + [JsonIgnore] + public string? QueryLuceneSyntax { get => Q("q"); set => Q("q", value); } + /// /// /// If true, Elasticsearch refreshes affected shards to make the operation visible to search. @@ -582,6 +597,7 @@ public UpdateByQueryRequestDescriptor() : this(typeof(TDocument)) public UpdateByQueryRequestDescriptor Lenient(bool? lenient = true) => Qs("lenient", lenient); public UpdateByQueryRequestDescriptor Pipeline(string? pipeline) => Qs("pipeline", pipeline); public UpdateByQueryRequestDescriptor Preference(string? preference) => Qs("preference", preference); + public UpdateByQueryRequestDescriptor QueryLuceneSyntax(string? queryLuceneSyntax) => Qs("q", queryLuceneSyntax); public UpdateByQueryRequestDescriptor Refresh(bool? refresh = true) => Qs("refresh", refresh); public UpdateByQueryRequestDescriptor RequestCache(bool? requestCache = true) => Qs("request_cache", requestCache); public UpdateByQueryRequestDescriptor RequestsPerSecond(float? requestsPerSecond) => Qs("requests_per_second", requestsPerSecond); @@ -828,6 +844,7 @@ public UpdateByQueryRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.I public UpdateByQueryRequestDescriptor Lenient(bool? lenient = true) => Qs("lenient", lenient); public UpdateByQueryRequestDescriptor Pipeline(string? pipeline) => Qs("pipeline", pipeline); public UpdateByQueryRequestDescriptor Preference(string? preference) => Qs("preference", preference); + public UpdateByQueryRequestDescriptor QueryLuceneSyntax(string? queryLuceneSyntax) => Qs("q", queryLuceneSyntax); public UpdateByQueryRequestDescriptor Refresh(bool? refresh = true) => Qs("refresh", refresh); public UpdateByQueryRequestDescriptor RequestCache(bool? requestCache = true) => Qs("request_cache", requestCache); public UpdateByQueryRequestDescriptor RequestsPerSecond(float? requestsPerSecond) => Qs("requests_per_second", requestsPerSecond); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/Analyzers.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/Analyzers.g.cs index 22c425de4b8..6bd7654a3b8 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/Analyzers.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/Analyzers.g.cs @@ -66,18 +66,87 @@ public AnalyzersDescriptor() : base(new Analyzers()) { } + public AnalyzersDescriptor Arabic(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Arabic(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Arabic(string analyzerName, ArabicAnalyzer arabicAnalyzer) => AssignVariant(analyzerName, arabicAnalyzer); + public AnalyzersDescriptor Armenian(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Armenian(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Armenian(string analyzerName, ArmenianAnalyzer armenianAnalyzer) => AssignVariant(analyzerName, armenianAnalyzer); + public AnalyzersDescriptor Basque(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Basque(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Basque(string analyzerName, BasqueAnalyzer basqueAnalyzer) => AssignVariant(analyzerName, basqueAnalyzer); + public AnalyzersDescriptor Bengali(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Bengali(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Bengali(string analyzerName, BengaliAnalyzer bengaliAnalyzer) => AssignVariant(analyzerName, bengaliAnalyzer); + public AnalyzersDescriptor Brazilian(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Brazilian(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Brazilian(string analyzerName, BrazilianAnalyzer brazilianAnalyzer) => AssignVariant(analyzerName, brazilianAnalyzer); + public AnalyzersDescriptor Bulgarian(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Bulgarian(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Bulgarian(string analyzerName, BulgarianAnalyzer bulgarianAnalyzer) => AssignVariant(analyzerName, bulgarianAnalyzer); + public AnalyzersDescriptor Catalan(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Catalan(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Catalan(string analyzerName, CatalanAnalyzer catalanAnalyzer) => AssignVariant(analyzerName, catalanAnalyzer); + public AnalyzersDescriptor Chinese(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Chinese(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Chinese(string analyzerName, ChineseAnalyzer chineseAnalyzer) => AssignVariant(analyzerName, chineseAnalyzer); + public AnalyzersDescriptor Cjk(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Cjk(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Cjk(string analyzerName, CjkAnalyzer cjkAnalyzer) => AssignVariant(analyzerName, cjkAnalyzer); public AnalyzersDescriptor Custom(string analyzerName) => AssignVariant(analyzerName, null); public AnalyzersDescriptor Custom(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); public AnalyzersDescriptor Custom(string analyzerName, CustomAnalyzer customAnalyzer) => AssignVariant(analyzerName, customAnalyzer); + public AnalyzersDescriptor Czech(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Czech(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Czech(string analyzerName, CzechAnalyzer czechAnalyzer) => AssignVariant(analyzerName, czechAnalyzer); + public AnalyzersDescriptor Danish(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Danish(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Danish(string analyzerName, DanishAnalyzer danishAnalyzer) => AssignVariant(analyzerName, danishAnalyzer); public AnalyzersDescriptor Dutch(string analyzerName) => AssignVariant(analyzerName, null); public AnalyzersDescriptor Dutch(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); public AnalyzersDescriptor Dutch(string analyzerName, DutchAnalyzer dutchAnalyzer) => AssignVariant(analyzerName, dutchAnalyzer); + public AnalyzersDescriptor English(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor English(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor English(string analyzerName, EnglishAnalyzer englishAnalyzer) => AssignVariant(analyzerName, englishAnalyzer); + public AnalyzersDescriptor Estonian(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Estonian(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Estonian(string analyzerName, EstonianAnalyzer estonianAnalyzer) => AssignVariant(analyzerName, estonianAnalyzer); public AnalyzersDescriptor Fingerprint(string analyzerName) => AssignVariant(analyzerName, null); public AnalyzersDescriptor Fingerprint(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); public AnalyzersDescriptor Fingerprint(string analyzerName, FingerprintAnalyzer fingerprintAnalyzer) => AssignVariant(analyzerName, fingerprintAnalyzer); + public AnalyzersDescriptor Finnish(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Finnish(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Finnish(string analyzerName, FinnishAnalyzer finnishAnalyzer) => AssignVariant(analyzerName, finnishAnalyzer); + public AnalyzersDescriptor French(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor French(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor French(string analyzerName, FrenchAnalyzer frenchAnalyzer) => AssignVariant(analyzerName, frenchAnalyzer); + public AnalyzersDescriptor Galician(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Galician(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Galician(string analyzerName, GalicianAnalyzer galicianAnalyzer) => AssignVariant(analyzerName, galicianAnalyzer); + public AnalyzersDescriptor German(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor German(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor German(string analyzerName, GermanAnalyzer germanAnalyzer) => AssignVariant(analyzerName, germanAnalyzer); + public AnalyzersDescriptor Greek(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Greek(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Greek(string analyzerName, GreekAnalyzer greekAnalyzer) => AssignVariant(analyzerName, greekAnalyzer); + public AnalyzersDescriptor Hindi(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Hindi(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Hindi(string analyzerName, HindiAnalyzer hindiAnalyzer) => AssignVariant(analyzerName, hindiAnalyzer); + public AnalyzersDescriptor Hungarian(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Hungarian(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Hungarian(string analyzerName, HungarianAnalyzer hungarianAnalyzer) => AssignVariant(analyzerName, hungarianAnalyzer); public AnalyzersDescriptor Icu(string analyzerName) => AssignVariant(analyzerName, null); public AnalyzersDescriptor Icu(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); public AnalyzersDescriptor Icu(string analyzerName, IcuAnalyzer icuAnalyzer) => AssignVariant(analyzerName, icuAnalyzer); + public AnalyzersDescriptor Indonesian(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Indonesian(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Indonesian(string analyzerName, IndonesianAnalyzer indonesianAnalyzer) => AssignVariant(analyzerName, indonesianAnalyzer); + public AnalyzersDescriptor Irish(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Irish(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Irish(string analyzerName, IrishAnalyzer irishAnalyzer) => AssignVariant(analyzerName, irishAnalyzer); + public AnalyzersDescriptor Italian(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Italian(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Italian(string analyzerName, ItalianAnalyzer italianAnalyzer) => AssignVariant(analyzerName, italianAnalyzer); public AnalyzersDescriptor Keyword(string analyzerName) => AssignVariant(analyzerName, null); public AnalyzersDescriptor Keyword(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); public AnalyzersDescriptor Keyword(string analyzerName, KeywordAnalyzer keywordAnalyzer) => AssignVariant(analyzerName, keywordAnalyzer); @@ -87,24 +156,63 @@ public AnalyzersDescriptor() : base(new Analyzers()) public AnalyzersDescriptor Language(string analyzerName) => AssignVariant(analyzerName, null); public AnalyzersDescriptor Language(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); public AnalyzersDescriptor Language(string analyzerName, LanguageAnalyzer languageAnalyzer) => AssignVariant(analyzerName, languageAnalyzer); + public AnalyzersDescriptor Latvian(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Latvian(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Latvian(string analyzerName, LatvianAnalyzer latvianAnalyzer) => AssignVariant(analyzerName, latvianAnalyzer); + public AnalyzersDescriptor Lithuanian(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Lithuanian(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Lithuanian(string analyzerName, LithuanianAnalyzer lithuanianAnalyzer) => AssignVariant(analyzerName, lithuanianAnalyzer); public AnalyzersDescriptor Nori(string analyzerName) => AssignVariant(analyzerName, null); public AnalyzersDescriptor Nori(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); public AnalyzersDescriptor Nori(string analyzerName, NoriAnalyzer noriAnalyzer) => AssignVariant(analyzerName, noriAnalyzer); + public AnalyzersDescriptor Norwegian(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Norwegian(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Norwegian(string analyzerName, NorwegianAnalyzer norwegianAnalyzer) => AssignVariant(analyzerName, norwegianAnalyzer); public AnalyzersDescriptor Pattern(string analyzerName) => AssignVariant(analyzerName, null); public AnalyzersDescriptor Pattern(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); public AnalyzersDescriptor Pattern(string analyzerName, PatternAnalyzer patternAnalyzer) => AssignVariant(analyzerName, patternAnalyzer); + public AnalyzersDescriptor Persian(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Persian(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Persian(string analyzerName, PersianAnalyzer persianAnalyzer) => AssignVariant(analyzerName, persianAnalyzer); + public AnalyzersDescriptor Portuguese(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Portuguese(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Portuguese(string analyzerName, PortugueseAnalyzer portugueseAnalyzer) => AssignVariant(analyzerName, portugueseAnalyzer); + public AnalyzersDescriptor Romanian(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Romanian(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Romanian(string analyzerName, RomanianAnalyzer romanianAnalyzer) => AssignVariant(analyzerName, romanianAnalyzer); + public AnalyzersDescriptor Russian(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Russian(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Russian(string analyzerName, RussianAnalyzer russianAnalyzer) => AssignVariant(analyzerName, russianAnalyzer); + public AnalyzersDescriptor Serbian(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Serbian(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Serbian(string analyzerName, SerbianAnalyzer serbianAnalyzer) => AssignVariant(analyzerName, serbianAnalyzer); public AnalyzersDescriptor Simple(string analyzerName) => AssignVariant(analyzerName, null); public AnalyzersDescriptor Simple(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); public AnalyzersDescriptor Simple(string analyzerName, SimpleAnalyzer simpleAnalyzer) => AssignVariant(analyzerName, simpleAnalyzer); public AnalyzersDescriptor Snowball(string analyzerName) => AssignVariant(analyzerName, null); public AnalyzersDescriptor Snowball(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); public AnalyzersDescriptor Snowball(string analyzerName, SnowballAnalyzer snowballAnalyzer) => AssignVariant(analyzerName, snowballAnalyzer); + public AnalyzersDescriptor Sorani(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Sorani(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Sorani(string analyzerName, SoraniAnalyzer soraniAnalyzer) => AssignVariant(analyzerName, soraniAnalyzer); + public AnalyzersDescriptor Spanish(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Spanish(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Spanish(string analyzerName, SpanishAnalyzer spanishAnalyzer) => AssignVariant(analyzerName, spanishAnalyzer); public AnalyzersDescriptor Standard(string analyzerName) => AssignVariant(analyzerName, null); public AnalyzersDescriptor Standard(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); public AnalyzersDescriptor Standard(string analyzerName, StandardAnalyzer standardAnalyzer) => AssignVariant(analyzerName, standardAnalyzer); public AnalyzersDescriptor Stop(string analyzerName) => AssignVariant(analyzerName, null); public AnalyzersDescriptor Stop(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); public AnalyzersDescriptor Stop(string analyzerName, StopAnalyzer stopAnalyzer) => AssignVariant(analyzerName, stopAnalyzer); + public AnalyzersDescriptor Swedish(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Swedish(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Swedish(string analyzerName, SwedishAnalyzer swedishAnalyzer) => AssignVariant(analyzerName, swedishAnalyzer); + public AnalyzersDescriptor Thai(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Thai(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Thai(string analyzerName, ThaiAnalyzer thaiAnalyzer) => AssignVariant(analyzerName, thaiAnalyzer); + public AnalyzersDescriptor Turkish(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Turkish(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Turkish(string analyzerName, TurkishAnalyzer turkishAnalyzer) => AssignVariant(analyzerName, turkishAnalyzer); public AnalyzersDescriptor Whitespace(string analyzerName) => AssignVariant(analyzerName, null); public AnalyzersDescriptor Whitespace(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); public AnalyzersDescriptor Whitespace(string analyzerName, WhitespaceAnalyzer whitespaceAnalyzer) => AssignVariant(analyzerName, whitespaceAnalyzer); @@ -124,32 +232,104 @@ public override IAnalyzer Read(ref Utf8JsonReader reader, Type typeToConvert, Js switch (type) { + case "arabic": + return JsonSerializer.Deserialize(ref reader, options); + case "armenian": + return JsonSerializer.Deserialize(ref reader, options); + case "basque": + return JsonSerializer.Deserialize(ref reader, options); + case "bengali": + return JsonSerializer.Deserialize(ref reader, options); + case "brazilian": + return JsonSerializer.Deserialize(ref reader, options); + case "bulgarian": + return JsonSerializer.Deserialize(ref reader, options); + case "catalan": + return JsonSerializer.Deserialize(ref reader, options); + case "chinese": + return JsonSerializer.Deserialize(ref reader, options); + case "cjk": + return JsonSerializer.Deserialize(ref reader, options); case "custom": return JsonSerializer.Deserialize(ref reader, options); + case "czech": + return JsonSerializer.Deserialize(ref reader, options); + case "danish": + return JsonSerializer.Deserialize(ref reader, options); case "dutch": return JsonSerializer.Deserialize(ref reader, options); + case "english": + return JsonSerializer.Deserialize(ref reader, options); + case "estonian": + return JsonSerializer.Deserialize(ref reader, options); case "fingerprint": return JsonSerializer.Deserialize(ref reader, options); + case "finnish": + return JsonSerializer.Deserialize(ref reader, options); + case "french": + return JsonSerializer.Deserialize(ref reader, options); + case "galician": + return JsonSerializer.Deserialize(ref reader, options); + case "german": + return JsonSerializer.Deserialize(ref reader, options); + case "greek": + return JsonSerializer.Deserialize(ref reader, options); + case "hindi": + return JsonSerializer.Deserialize(ref reader, options); + case "hungarian": + return JsonSerializer.Deserialize(ref reader, options); case "icu_analyzer": return JsonSerializer.Deserialize(ref reader, options); + case "indonesian": + return JsonSerializer.Deserialize(ref reader, options); + case "irish": + return JsonSerializer.Deserialize(ref reader, options); + case "italian": + return JsonSerializer.Deserialize(ref reader, options); case "keyword": return JsonSerializer.Deserialize(ref reader, options); case "kuromoji": return JsonSerializer.Deserialize(ref reader, options); case "language": return JsonSerializer.Deserialize(ref reader, options); + case "latvian": + return JsonSerializer.Deserialize(ref reader, options); + case "lithuanian": + return JsonSerializer.Deserialize(ref reader, options); case "nori": return JsonSerializer.Deserialize(ref reader, options); + case "norwegian": + return JsonSerializer.Deserialize(ref reader, options); case "pattern": return JsonSerializer.Deserialize(ref reader, options); + case "persian": + return JsonSerializer.Deserialize(ref reader, options); + case "portuguese": + return JsonSerializer.Deserialize(ref reader, options); + case "romanian": + return JsonSerializer.Deserialize(ref reader, options); + case "russian": + return JsonSerializer.Deserialize(ref reader, options); + case "serbian": + return JsonSerializer.Deserialize(ref reader, options); case "simple": return JsonSerializer.Deserialize(ref reader, options); case "snowball": return JsonSerializer.Deserialize(ref reader, options); + case "sorani": + return JsonSerializer.Deserialize(ref reader, options); + case "spanish": + return JsonSerializer.Deserialize(ref reader, options); case "standard": return JsonSerializer.Deserialize(ref reader, options); case "stop": return JsonSerializer.Deserialize(ref reader, options); + case "swedish": + return JsonSerializer.Deserialize(ref reader, options); + case "thai": + return JsonSerializer.Deserialize(ref reader, options); + case "turkish": + return JsonSerializer.Deserialize(ref reader, options); case "whitespace": return JsonSerializer.Deserialize(ref reader, options); default: @@ -167,18 +347,87 @@ public override void Write(Utf8JsonWriter writer, IAnalyzer value, JsonSerialize switch (value.Type) { + case "arabic": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.ArabicAnalyzer), options); + return; + case "armenian": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.ArmenianAnalyzer), options); + return; + case "basque": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.BasqueAnalyzer), options); + return; + case "bengali": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.BengaliAnalyzer), options); + return; + case "brazilian": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.BrazilianAnalyzer), options); + return; + case "bulgarian": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.BulgarianAnalyzer), options); + return; + case "catalan": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.CatalanAnalyzer), options); + return; + case "chinese": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.ChineseAnalyzer), options); + return; + case "cjk": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.CjkAnalyzer), options); + return; case "custom": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.CustomAnalyzer), options); return; + case "czech": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.CzechAnalyzer), options); + return; + case "danish": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.DanishAnalyzer), options); + return; case "dutch": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.DutchAnalyzer), options); return; + case "english": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.EnglishAnalyzer), options); + return; + case "estonian": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.EstonianAnalyzer), options); + return; case "fingerprint": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.FingerprintAnalyzer), options); return; + case "finnish": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.FinnishAnalyzer), options); + return; + case "french": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.FrenchAnalyzer), options); + return; + case "galician": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.GalicianAnalyzer), options); + return; + case "german": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.GermanAnalyzer), options); + return; + case "greek": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.GreekAnalyzer), options); + return; + case "hindi": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.HindiAnalyzer), options); + return; + case "hungarian": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.HungarianAnalyzer), options); + return; case "icu_analyzer": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuAnalyzer), options); return; + case "indonesian": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.IndonesianAnalyzer), options); + return; + case "irish": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.IrishAnalyzer), options); + return; + case "italian": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.ItalianAnalyzer), options); + return; case "keyword": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.KeywordAnalyzer), options); return; @@ -188,24 +437,63 @@ public override void Write(Utf8JsonWriter writer, IAnalyzer value, JsonSerialize case "language": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.LanguageAnalyzer), options); return; + case "latvian": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.LatvianAnalyzer), options); + return; + case "lithuanian": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.LithuanianAnalyzer), options); + return; case "nori": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.NoriAnalyzer), options); return; + case "norwegian": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.NorwegianAnalyzer), options); + return; case "pattern": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.PatternAnalyzer), options); return; + case "persian": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.PersianAnalyzer), options); + return; + case "portuguese": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.PortugueseAnalyzer), options); + return; + case "romanian": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.RomanianAnalyzer), options); + return; + case "russian": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.RussianAnalyzer), options); + return; + case "serbian": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.SerbianAnalyzer), options); + return; case "simple": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.SimpleAnalyzer), options); return; case "snowball": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.SnowballAnalyzer), options); return; + case "sorani": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.SoraniAnalyzer), options); + return; + case "spanish": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.SpanishAnalyzer), options); + return; case "standard": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.StandardAnalyzer), options); return; case "stop": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.StopAnalyzer), options); return; + case "swedish": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.SwedishAnalyzer), options); + return; + case "thai": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.ThaiAnalyzer), options); + return; + case "turkish": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.TurkishAnalyzer), options); + return; case "whitespace": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.WhitespaceAnalyzer), options); return; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ArabicAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ArabicAnalyzer.g.cs new file mode 100644 index 00000000000..87783f17690 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ArabicAnalyzer.g.cs @@ -0,0 +1,106 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Analysis; + +public sealed partial class ArabicAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stem_exclusion")] + public ICollection? StemExclusion { get; set; } + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "arabic"; +} + +public sealed partial class ArabicAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal ArabicAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public ArabicAnalyzerDescriptor() : base() + { + } + + private ICollection? StemExclusionValue { get; set; } + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public ArabicAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) + { + StemExclusionValue = stemExclusion; + return Self; + } + + public ArabicAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public ArabicAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StemExclusionValue is not null) + { + writer.WritePropertyName("stem_exclusion"); + JsonSerializer.Serialize(writer, StemExclusionValue, options); + } + + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("arabic"); + writer.WriteEndObject(); + } + + ArabicAnalyzer IBuildableDescriptor.Build() => new() + { + StemExclusion = StemExclusionValue, + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ArmenianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ArmenianAnalyzer.g.cs new file mode 100644 index 00000000000..cbbf0f7e7f8 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ArmenianAnalyzer.g.cs @@ -0,0 +1,106 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Analysis; + +public sealed partial class ArmenianAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stem_exclusion")] + public ICollection? StemExclusion { get; set; } + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "armenian"; +} + +public sealed partial class ArmenianAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal ArmenianAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public ArmenianAnalyzerDescriptor() : base() + { + } + + private ICollection? StemExclusionValue { get; set; } + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public ArmenianAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) + { + StemExclusionValue = stemExclusion; + return Self; + } + + public ArmenianAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public ArmenianAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StemExclusionValue is not null) + { + writer.WritePropertyName("stem_exclusion"); + JsonSerializer.Serialize(writer, StemExclusionValue, options); + } + + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("armenian"); + writer.WriteEndObject(); + } + + ArmenianAnalyzer IBuildableDescriptor.Build() => new() + { + StemExclusion = StemExclusionValue, + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/BasqueAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/BasqueAnalyzer.g.cs new file mode 100644 index 00000000000..7ab1d7efbd0 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/BasqueAnalyzer.g.cs @@ -0,0 +1,106 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Analysis; + +public sealed partial class BasqueAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stem_exclusion")] + public ICollection? StemExclusion { get; set; } + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "basque"; +} + +public sealed partial class BasqueAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal BasqueAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public BasqueAnalyzerDescriptor() : base() + { + } + + private ICollection? StemExclusionValue { get; set; } + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public BasqueAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) + { + StemExclusionValue = stemExclusion; + return Self; + } + + public BasqueAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public BasqueAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StemExclusionValue is not null) + { + writer.WritePropertyName("stem_exclusion"); + JsonSerializer.Serialize(writer, StemExclusionValue, options); + } + + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("basque"); + writer.WriteEndObject(); + } + + BasqueAnalyzer IBuildableDescriptor.Build() => new() + { + StemExclusion = StemExclusionValue, + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/BengaliAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/BengaliAnalyzer.g.cs new file mode 100644 index 00000000000..951c03fed86 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/BengaliAnalyzer.g.cs @@ -0,0 +1,106 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Analysis; + +public sealed partial class BengaliAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stem_exclusion")] + public ICollection? StemExclusion { get; set; } + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "bengali"; +} + +public sealed partial class BengaliAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal BengaliAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public BengaliAnalyzerDescriptor() : base() + { + } + + private ICollection? StemExclusionValue { get; set; } + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public BengaliAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) + { + StemExclusionValue = stemExclusion; + return Self; + } + + public BengaliAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public BengaliAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StemExclusionValue is not null) + { + writer.WritePropertyName("stem_exclusion"); + JsonSerializer.Serialize(writer, StemExclusionValue, options); + } + + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("bengali"); + writer.WriteEndObject(); + } + + BengaliAnalyzer IBuildableDescriptor.Build() => new() + { + StemExclusion = StemExclusionValue, + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/BrazilianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/BrazilianAnalyzer.g.cs new file mode 100644 index 00000000000..1bde324bc93 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/BrazilianAnalyzer.g.cs @@ -0,0 +1,90 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Analysis; + +public sealed partial class BrazilianAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "brazilian"; +} + +public sealed partial class BrazilianAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal BrazilianAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public BrazilianAnalyzerDescriptor() : base() + { + } + + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public BrazilianAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public BrazilianAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("brazilian"); + writer.WriteEndObject(); + } + + BrazilianAnalyzer IBuildableDescriptor.Build() => new() + { + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/BulgarianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/BulgarianAnalyzer.g.cs new file mode 100644 index 00000000000..626ffb4a980 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/BulgarianAnalyzer.g.cs @@ -0,0 +1,106 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Analysis; + +public sealed partial class BulgarianAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stem_exclusion")] + public ICollection? StemExclusion { get; set; } + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "bulgarian"; +} + +public sealed partial class BulgarianAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal BulgarianAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public BulgarianAnalyzerDescriptor() : base() + { + } + + private ICollection? StemExclusionValue { get; set; } + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public BulgarianAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) + { + StemExclusionValue = stemExclusion; + return Self; + } + + public BulgarianAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public BulgarianAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StemExclusionValue is not null) + { + writer.WritePropertyName("stem_exclusion"); + JsonSerializer.Serialize(writer, StemExclusionValue, options); + } + + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("bulgarian"); + writer.WriteEndObject(); + } + + BulgarianAnalyzer IBuildableDescriptor.Build() => new() + { + StemExclusion = StemExclusionValue, + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/CatalanAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/CatalanAnalyzer.g.cs new file mode 100644 index 00000000000..05bcbee46aa --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/CatalanAnalyzer.g.cs @@ -0,0 +1,106 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Analysis; + +public sealed partial class CatalanAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stem_exclusion")] + public ICollection? StemExclusion { get; set; } + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "catalan"; +} + +public sealed partial class CatalanAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal CatalanAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public CatalanAnalyzerDescriptor() : base() + { + } + + private ICollection? StemExclusionValue { get; set; } + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public CatalanAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) + { + StemExclusionValue = stemExclusion; + return Self; + } + + public CatalanAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public CatalanAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StemExclusionValue is not null) + { + writer.WritePropertyName("stem_exclusion"); + JsonSerializer.Serialize(writer, StemExclusionValue, options); + } + + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("catalan"); + writer.WriteEndObject(); + } + + CatalanAnalyzer IBuildableDescriptor.Build() => new() + { + StemExclusion = StemExclusionValue, + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ChineseAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ChineseAnalyzer.g.cs new file mode 100644 index 00000000000..346475e7101 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ChineseAnalyzer.g.cs @@ -0,0 +1,90 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Analysis; + +public sealed partial class ChineseAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "chinese"; +} + +public sealed partial class ChineseAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal ChineseAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public ChineseAnalyzerDescriptor() : base() + { + } + + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public ChineseAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public ChineseAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("chinese"); + writer.WriteEndObject(); + } + + ChineseAnalyzer IBuildableDescriptor.Build() => new() + { + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/CjkAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/CjkAnalyzer.g.cs new file mode 100644 index 00000000000..3c5155d81ee --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/CjkAnalyzer.g.cs @@ -0,0 +1,90 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Analysis; + +public sealed partial class CjkAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "cjk"; +} + +public sealed partial class CjkAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal CjkAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public CjkAnalyzerDescriptor() : base() + { + } + + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public CjkAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public CjkAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("cjk"); + writer.WriteEndObject(); + } + + CjkAnalyzer IBuildableDescriptor.Build() => new() + { + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/CzechAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/CzechAnalyzer.g.cs new file mode 100644 index 00000000000..2ab33835403 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/CzechAnalyzer.g.cs @@ -0,0 +1,106 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Analysis; + +public sealed partial class CzechAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stem_exclusion")] + public ICollection? StemExclusion { get; set; } + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "czech"; +} + +public sealed partial class CzechAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal CzechAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public CzechAnalyzerDescriptor() : base() + { + } + + private ICollection? StemExclusionValue { get; set; } + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public CzechAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) + { + StemExclusionValue = stemExclusion; + return Self; + } + + public CzechAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public CzechAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StemExclusionValue is not null) + { + writer.WritePropertyName("stem_exclusion"); + JsonSerializer.Serialize(writer, StemExclusionValue, options); + } + + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("czech"); + writer.WriteEndObject(); + } + + CzechAnalyzer IBuildableDescriptor.Build() => new() + { + StemExclusion = StemExclusionValue, + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/DanishAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/DanishAnalyzer.g.cs new file mode 100644 index 00000000000..1a564e5d309 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/DanishAnalyzer.g.cs @@ -0,0 +1,90 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Analysis; + +public sealed partial class DanishAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "danish"; +} + +public sealed partial class DanishAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal DanishAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public DanishAnalyzerDescriptor() : base() + { + } + + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public DanishAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public DanishAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("danish"); + writer.WriteEndObject(); + } + + DanishAnalyzer IBuildableDescriptor.Build() => new() + { + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/DutchAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/DutchAnalyzer.g.cs index dcddfd23d84..988e5393d2c 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/DutchAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/DutchAnalyzer.g.cs @@ -29,9 +29,13 @@ namespace Elastic.Clients.Elasticsearch.Serverless.Analysis; public sealed partial class DutchAnalyzer : IAnalyzer { + [JsonInclude, JsonPropertyName("stem_exclusion")] + public ICollection? StemExclusion { get; set; } [JsonInclude, JsonPropertyName("stopwords")] [SingleOrManyCollectionConverter(typeof(string))] public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } [JsonInclude, JsonPropertyName("type")] public string Type => "dutch"; @@ -45,7 +49,15 @@ public DutchAnalyzerDescriptor() : base() { } + private ICollection? StemExclusionValue { get; set; } private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public DutchAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) + { + StemExclusionValue = stemExclusion; + return Self; + } public DutchAnalyzerDescriptor Stopwords(ICollection? stopwords) { @@ -53,15 +65,33 @@ public DutchAnalyzerDescriptor Stopwords(ICollection? stopwords) return Self; } + public DutchAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); + if (StemExclusionValue is not null) + { + writer.WritePropertyName("stem_exclusion"); + JsonSerializer.Serialize(writer, StemExclusionValue, options); + } + if (StopwordsValue is not null) { writer.WritePropertyName("stopwords"); SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); } + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + writer.WritePropertyName("type"); writer.WriteStringValue("dutch"); writer.WriteEndObject(); @@ -69,6 +99,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o DutchAnalyzer IBuildableDescriptor.Build() => new() { - Stopwords = StopwordsValue + StemExclusion = StemExclusionValue, + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/EnglishAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/EnglishAnalyzer.g.cs new file mode 100644 index 00000000000..f7840444ac6 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/EnglishAnalyzer.g.cs @@ -0,0 +1,106 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Analysis; + +public sealed partial class EnglishAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stem_exclusion")] + public ICollection? StemExclusion { get; set; } + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "english"; +} + +public sealed partial class EnglishAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal EnglishAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public EnglishAnalyzerDescriptor() : base() + { + } + + private ICollection? StemExclusionValue { get; set; } + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public EnglishAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) + { + StemExclusionValue = stemExclusion; + return Self; + } + + public EnglishAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public EnglishAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StemExclusionValue is not null) + { + writer.WritePropertyName("stem_exclusion"); + JsonSerializer.Serialize(writer, StemExclusionValue, options); + } + + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("english"); + writer.WriteEndObject(); + } + + EnglishAnalyzer IBuildableDescriptor.Build() => new() + { + StemExclusion = StemExclusionValue, + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/EstonianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/EstonianAnalyzer.g.cs new file mode 100644 index 00000000000..33b4a41442b --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/EstonianAnalyzer.g.cs @@ -0,0 +1,90 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Analysis; + +public sealed partial class EstonianAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "estonian"; +} + +public sealed partial class EstonianAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal EstonianAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public EstonianAnalyzerDescriptor() : base() + { + } + + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public EstonianAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public EstonianAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("estonian"); + writer.WriteEndObject(); + } + + EstonianAnalyzer IBuildableDescriptor.Build() => new() + { + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/FinnishAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/FinnishAnalyzer.g.cs new file mode 100644 index 00000000000..ac99cc9a655 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/FinnishAnalyzer.g.cs @@ -0,0 +1,106 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Analysis; + +public sealed partial class FinnishAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stem_exclusion")] + public ICollection? StemExclusion { get; set; } + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "finnish"; +} + +public sealed partial class FinnishAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal FinnishAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public FinnishAnalyzerDescriptor() : base() + { + } + + private ICollection? StemExclusionValue { get; set; } + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public FinnishAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) + { + StemExclusionValue = stemExclusion; + return Self; + } + + public FinnishAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public FinnishAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StemExclusionValue is not null) + { + writer.WritePropertyName("stem_exclusion"); + JsonSerializer.Serialize(writer, StemExclusionValue, options); + } + + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("finnish"); + writer.WriteEndObject(); + } + + FinnishAnalyzer IBuildableDescriptor.Build() => new() + { + StemExclusion = StemExclusionValue, + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/FrenchAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/FrenchAnalyzer.g.cs new file mode 100644 index 00000000000..f24252dbd45 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/FrenchAnalyzer.g.cs @@ -0,0 +1,106 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Analysis; + +public sealed partial class FrenchAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stem_exclusion")] + public ICollection? StemExclusion { get; set; } + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "french"; +} + +public sealed partial class FrenchAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal FrenchAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public FrenchAnalyzerDescriptor() : base() + { + } + + private ICollection? StemExclusionValue { get; set; } + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public FrenchAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) + { + StemExclusionValue = stemExclusion; + return Self; + } + + public FrenchAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public FrenchAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StemExclusionValue is not null) + { + writer.WritePropertyName("stem_exclusion"); + JsonSerializer.Serialize(writer, StemExclusionValue, options); + } + + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("french"); + writer.WriteEndObject(); + } + + FrenchAnalyzer IBuildableDescriptor.Build() => new() + { + StemExclusion = StemExclusionValue, + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/GalicianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/GalicianAnalyzer.g.cs new file mode 100644 index 00000000000..7d2d6eb67b6 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/GalicianAnalyzer.g.cs @@ -0,0 +1,106 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Analysis; + +public sealed partial class GalicianAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stem_exclusion")] + public ICollection? StemExclusion { get; set; } + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "galician"; +} + +public sealed partial class GalicianAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal GalicianAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public GalicianAnalyzerDescriptor() : base() + { + } + + private ICollection? StemExclusionValue { get; set; } + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public GalicianAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) + { + StemExclusionValue = stemExclusion; + return Self; + } + + public GalicianAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public GalicianAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StemExclusionValue is not null) + { + writer.WritePropertyName("stem_exclusion"); + JsonSerializer.Serialize(writer, StemExclusionValue, options); + } + + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("galician"); + writer.WriteEndObject(); + } + + GalicianAnalyzer IBuildableDescriptor.Build() => new() + { + StemExclusion = StemExclusionValue, + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/GermanAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/GermanAnalyzer.g.cs new file mode 100644 index 00000000000..3ac9153d3fb --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/GermanAnalyzer.g.cs @@ -0,0 +1,106 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Analysis; + +public sealed partial class GermanAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stem_exclusion")] + public ICollection? StemExclusion { get; set; } + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "german"; +} + +public sealed partial class GermanAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal GermanAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public GermanAnalyzerDescriptor() : base() + { + } + + private ICollection? StemExclusionValue { get; set; } + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public GermanAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) + { + StemExclusionValue = stemExclusion; + return Self; + } + + public GermanAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public GermanAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StemExclusionValue is not null) + { + writer.WritePropertyName("stem_exclusion"); + JsonSerializer.Serialize(writer, StemExclusionValue, options); + } + + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("german"); + writer.WriteEndObject(); + } + + GermanAnalyzer IBuildableDescriptor.Build() => new() + { + StemExclusion = StemExclusionValue, + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/GreekAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/GreekAnalyzer.g.cs new file mode 100644 index 00000000000..2cdd8a4115a --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/GreekAnalyzer.g.cs @@ -0,0 +1,90 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Analysis; + +public sealed partial class GreekAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "greek"; +} + +public sealed partial class GreekAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal GreekAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public GreekAnalyzerDescriptor() : base() + { + } + + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public GreekAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public GreekAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("greek"); + writer.WriteEndObject(); + } + + GreekAnalyzer IBuildableDescriptor.Build() => new() + { + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/HindiAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/HindiAnalyzer.g.cs new file mode 100644 index 00000000000..0e765e00b40 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/HindiAnalyzer.g.cs @@ -0,0 +1,106 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Analysis; + +public sealed partial class HindiAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stem_exclusion")] + public ICollection? StemExclusion { get; set; } + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "hindi"; +} + +public sealed partial class HindiAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal HindiAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public HindiAnalyzerDescriptor() : base() + { + } + + private ICollection? StemExclusionValue { get; set; } + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public HindiAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) + { + StemExclusionValue = stemExclusion; + return Self; + } + + public HindiAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public HindiAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StemExclusionValue is not null) + { + writer.WritePropertyName("stem_exclusion"); + JsonSerializer.Serialize(writer, StemExclusionValue, options); + } + + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("hindi"); + writer.WriteEndObject(); + } + + HindiAnalyzer IBuildableDescriptor.Build() => new() + { + StemExclusion = StemExclusionValue, + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/HungarianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/HungarianAnalyzer.g.cs new file mode 100644 index 00000000000..a03ae71fec5 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/HungarianAnalyzer.g.cs @@ -0,0 +1,106 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Analysis; + +public sealed partial class HungarianAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stem_exclusion")] + public ICollection? StemExclusion { get; set; } + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "hungarian"; +} + +public sealed partial class HungarianAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal HungarianAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public HungarianAnalyzerDescriptor() : base() + { + } + + private ICollection? StemExclusionValue { get; set; } + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public HungarianAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) + { + StemExclusionValue = stemExclusion; + return Self; + } + + public HungarianAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public HungarianAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StemExclusionValue is not null) + { + writer.WritePropertyName("stem_exclusion"); + JsonSerializer.Serialize(writer, StemExclusionValue, options); + } + + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("hungarian"); + writer.WriteEndObject(); + } + + HungarianAnalyzer IBuildableDescriptor.Build() => new() + { + StemExclusion = StemExclusionValue, + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/IndonesianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/IndonesianAnalyzer.g.cs new file mode 100644 index 00000000000..2d51e30cdad --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/IndonesianAnalyzer.g.cs @@ -0,0 +1,106 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Analysis; + +public sealed partial class IndonesianAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stem_exclusion")] + public ICollection? StemExclusion { get; set; } + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "indonesian"; +} + +public sealed partial class IndonesianAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal IndonesianAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public IndonesianAnalyzerDescriptor() : base() + { + } + + private ICollection? StemExclusionValue { get; set; } + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public IndonesianAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) + { + StemExclusionValue = stemExclusion; + return Self; + } + + public IndonesianAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public IndonesianAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StemExclusionValue is not null) + { + writer.WritePropertyName("stem_exclusion"); + JsonSerializer.Serialize(writer, StemExclusionValue, options); + } + + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("indonesian"); + writer.WriteEndObject(); + } + + IndonesianAnalyzer IBuildableDescriptor.Build() => new() + { + StemExclusion = StemExclusionValue, + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/IrishAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/IrishAnalyzer.g.cs new file mode 100644 index 00000000000..bc0b931d3ea --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/IrishAnalyzer.g.cs @@ -0,0 +1,106 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Analysis; + +public sealed partial class IrishAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stem_exclusion")] + public ICollection? StemExclusion { get; set; } + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "irish"; +} + +public sealed partial class IrishAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal IrishAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public IrishAnalyzerDescriptor() : base() + { + } + + private ICollection? StemExclusionValue { get; set; } + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public IrishAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) + { + StemExclusionValue = stemExclusion; + return Self; + } + + public IrishAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public IrishAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StemExclusionValue is not null) + { + writer.WritePropertyName("stem_exclusion"); + JsonSerializer.Serialize(writer, StemExclusionValue, options); + } + + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("irish"); + writer.WriteEndObject(); + } + + IrishAnalyzer IBuildableDescriptor.Build() => new() + { + StemExclusion = StemExclusionValue, + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ItalianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ItalianAnalyzer.g.cs new file mode 100644 index 00000000000..6f27eb0afdf --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ItalianAnalyzer.g.cs @@ -0,0 +1,106 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Analysis; + +public sealed partial class ItalianAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stem_exclusion")] + public ICollection? StemExclusion { get; set; } + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "italian"; +} + +public sealed partial class ItalianAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal ItalianAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public ItalianAnalyzerDescriptor() : base() + { + } + + private ICollection? StemExclusionValue { get; set; } + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public ItalianAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) + { + StemExclusionValue = stemExclusion; + return Self; + } + + public ItalianAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public ItalianAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StemExclusionValue is not null) + { + writer.WritePropertyName("stem_exclusion"); + JsonSerializer.Serialize(writer, StemExclusionValue, options); + } + + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("italian"); + writer.WriteEndObject(); + } + + ItalianAnalyzer IBuildableDescriptor.Build() => new() + { + StemExclusion = StemExclusionValue, + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/LatvianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/LatvianAnalyzer.g.cs new file mode 100644 index 00000000000..a14c5062cbb --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/LatvianAnalyzer.g.cs @@ -0,0 +1,106 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Analysis; + +public sealed partial class LatvianAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stem_exclusion")] + public ICollection? StemExclusion { get; set; } + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "latvian"; +} + +public sealed partial class LatvianAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal LatvianAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public LatvianAnalyzerDescriptor() : base() + { + } + + private ICollection? StemExclusionValue { get; set; } + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public LatvianAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) + { + StemExclusionValue = stemExclusion; + return Self; + } + + public LatvianAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public LatvianAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StemExclusionValue is not null) + { + writer.WritePropertyName("stem_exclusion"); + JsonSerializer.Serialize(writer, StemExclusionValue, options); + } + + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("latvian"); + writer.WriteEndObject(); + } + + LatvianAnalyzer IBuildableDescriptor.Build() => new() + { + StemExclusion = StemExclusionValue, + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/LithuanianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/LithuanianAnalyzer.g.cs new file mode 100644 index 00000000000..b676f04e394 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/LithuanianAnalyzer.g.cs @@ -0,0 +1,106 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Analysis; + +public sealed partial class LithuanianAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stem_exclusion")] + public ICollection? StemExclusion { get; set; } + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "lithuanian"; +} + +public sealed partial class LithuanianAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal LithuanianAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public LithuanianAnalyzerDescriptor() : base() + { + } + + private ICollection? StemExclusionValue { get; set; } + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public LithuanianAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) + { + StemExclusionValue = stemExclusion; + return Self; + } + + public LithuanianAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public LithuanianAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StemExclusionValue is not null) + { + writer.WritePropertyName("stem_exclusion"); + JsonSerializer.Serialize(writer, StemExclusionValue, options); + } + + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("lithuanian"); + writer.WriteEndObject(); + } + + LithuanianAnalyzer IBuildableDescriptor.Build() => new() + { + StemExclusion = StemExclusionValue, + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/NorwegianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/NorwegianAnalyzer.g.cs new file mode 100644 index 00000000000..5b88623985b --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/NorwegianAnalyzer.g.cs @@ -0,0 +1,106 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Analysis; + +public sealed partial class NorwegianAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stem_exclusion")] + public ICollection? StemExclusion { get; set; } + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "norwegian"; +} + +public sealed partial class NorwegianAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal NorwegianAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public NorwegianAnalyzerDescriptor() : base() + { + } + + private ICollection? StemExclusionValue { get; set; } + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public NorwegianAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) + { + StemExclusionValue = stemExclusion; + return Self; + } + + public NorwegianAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public NorwegianAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StemExclusionValue is not null) + { + writer.WritePropertyName("stem_exclusion"); + JsonSerializer.Serialize(writer, StemExclusionValue, options); + } + + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("norwegian"); + writer.WriteEndObject(); + } + + NorwegianAnalyzer IBuildableDescriptor.Build() => new() + { + StemExclusion = StemExclusionValue, + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/PersianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/PersianAnalyzer.g.cs new file mode 100644 index 00000000000..ea3eaf1c040 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/PersianAnalyzer.g.cs @@ -0,0 +1,90 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Analysis; + +public sealed partial class PersianAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "persian"; +} + +public sealed partial class PersianAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal PersianAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public PersianAnalyzerDescriptor() : base() + { + } + + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public PersianAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public PersianAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("persian"); + writer.WriteEndObject(); + } + + PersianAnalyzer IBuildableDescriptor.Build() => new() + { + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/PortugueseAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/PortugueseAnalyzer.g.cs new file mode 100644 index 00000000000..0344ea7173f --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/PortugueseAnalyzer.g.cs @@ -0,0 +1,106 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Analysis; + +public sealed partial class PortugueseAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stem_exclusion")] + public ICollection? StemExclusion { get; set; } + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "portuguese"; +} + +public sealed partial class PortugueseAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal PortugueseAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public PortugueseAnalyzerDescriptor() : base() + { + } + + private ICollection? StemExclusionValue { get; set; } + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public PortugueseAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) + { + StemExclusionValue = stemExclusion; + return Self; + } + + public PortugueseAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public PortugueseAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StemExclusionValue is not null) + { + writer.WritePropertyName("stem_exclusion"); + JsonSerializer.Serialize(writer, StemExclusionValue, options); + } + + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("portuguese"); + writer.WriteEndObject(); + } + + PortugueseAnalyzer IBuildableDescriptor.Build() => new() + { + StemExclusion = StemExclusionValue, + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/RomanianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/RomanianAnalyzer.g.cs new file mode 100644 index 00000000000..37809cd82ef --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/RomanianAnalyzer.g.cs @@ -0,0 +1,106 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Analysis; + +public sealed partial class RomanianAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stem_exclusion")] + public ICollection? StemExclusion { get; set; } + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "romanian"; +} + +public sealed partial class RomanianAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal RomanianAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public RomanianAnalyzerDescriptor() : base() + { + } + + private ICollection? StemExclusionValue { get; set; } + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public RomanianAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) + { + StemExclusionValue = stemExclusion; + return Self; + } + + public RomanianAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public RomanianAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StemExclusionValue is not null) + { + writer.WritePropertyName("stem_exclusion"); + JsonSerializer.Serialize(writer, StemExclusionValue, options); + } + + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("romanian"); + writer.WriteEndObject(); + } + + RomanianAnalyzer IBuildableDescriptor.Build() => new() + { + StemExclusion = StemExclusionValue, + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/RussianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/RussianAnalyzer.g.cs new file mode 100644 index 00000000000..8547f3c2ad7 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/RussianAnalyzer.g.cs @@ -0,0 +1,106 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Analysis; + +public sealed partial class RussianAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stem_exclusion")] + public ICollection? StemExclusion { get; set; } + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "russian"; +} + +public sealed partial class RussianAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal RussianAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public RussianAnalyzerDescriptor() : base() + { + } + + private ICollection? StemExclusionValue { get; set; } + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public RussianAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) + { + StemExclusionValue = stemExclusion; + return Self; + } + + public RussianAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public RussianAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StemExclusionValue is not null) + { + writer.WritePropertyName("stem_exclusion"); + JsonSerializer.Serialize(writer, StemExclusionValue, options); + } + + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("russian"); + writer.WriteEndObject(); + } + + RussianAnalyzer IBuildableDescriptor.Build() => new() + { + StemExclusion = StemExclusionValue, + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SerbianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SerbianAnalyzer.g.cs new file mode 100644 index 00000000000..9e978353e75 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SerbianAnalyzer.g.cs @@ -0,0 +1,106 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Analysis; + +public sealed partial class SerbianAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stem_exclusion")] + public ICollection? StemExclusion { get; set; } + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "serbian"; +} + +public sealed partial class SerbianAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal SerbianAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public SerbianAnalyzerDescriptor() : base() + { + } + + private ICollection? StemExclusionValue { get; set; } + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public SerbianAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) + { + StemExclusionValue = stemExclusion; + return Self; + } + + public SerbianAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public SerbianAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StemExclusionValue is not null) + { + writer.WritePropertyName("stem_exclusion"); + JsonSerializer.Serialize(writer, StemExclusionValue, options); + } + + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("serbian"); + writer.WriteEndObject(); + } + + SerbianAnalyzer IBuildableDescriptor.Build() => new() + { + StemExclusion = StemExclusionValue, + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SoraniAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SoraniAnalyzer.g.cs new file mode 100644 index 00000000000..f96bef1f1c9 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SoraniAnalyzer.g.cs @@ -0,0 +1,106 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Analysis; + +public sealed partial class SoraniAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stem_exclusion")] + public ICollection? StemExclusion { get; set; } + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "sorani"; +} + +public sealed partial class SoraniAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal SoraniAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public SoraniAnalyzerDescriptor() : base() + { + } + + private ICollection? StemExclusionValue { get; set; } + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public SoraniAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) + { + StemExclusionValue = stemExclusion; + return Self; + } + + public SoraniAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public SoraniAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StemExclusionValue is not null) + { + writer.WritePropertyName("stem_exclusion"); + JsonSerializer.Serialize(writer, StemExclusionValue, options); + } + + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("sorani"); + writer.WriteEndObject(); + } + + SoraniAnalyzer IBuildableDescriptor.Build() => new() + { + StemExclusion = StemExclusionValue, + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SpanishAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SpanishAnalyzer.g.cs new file mode 100644 index 00000000000..7c67c7c246e --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SpanishAnalyzer.g.cs @@ -0,0 +1,106 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Analysis; + +public sealed partial class SpanishAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stem_exclusion")] + public ICollection? StemExclusion { get; set; } + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "spanish"; +} + +public sealed partial class SpanishAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal SpanishAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public SpanishAnalyzerDescriptor() : base() + { + } + + private ICollection? StemExclusionValue { get; set; } + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public SpanishAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) + { + StemExclusionValue = stemExclusion; + return Self; + } + + public SpanishAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public SpanishAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StemExclusionValue is not null) + { + writer.WritePropertyName("stem_exclusion"); + JsonSerializer.Serialize(writer, StemExclusionValue, options); + } + + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("spanish"); + writer.WriteEndObject(); + } + + SpanishAnalyzer IBuildableDescriptor.Build() => new() + { + StemExclusion = StemExclusionValue, + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SwedishAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SwedishAnalyzer.g.cs new file mode 100644 index 00000000000..ae01149d2e9 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SwedishAnalyzer.g.cs @@ -0,0 +1,106 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Analysis; + +public sealed partial class SwedishAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stem_exclusion")] + public ICollection? StemExclusion { get; set; } + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "swedish"; +} + +public sealed partial class SwedishAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal SwedishAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public SwedishAnalyzerDescriptor() : base() + { + } + + private ICollection? StemExclusionValue { get; set; } + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public SwedishAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) + { + StemExclusionValue = stemExclusion; + return Self; + } + + public SwedishAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public SwedishAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StemExclusionValue is not null) + { + writer.WritePropertyName("stem_exclusion"); + JsonSerializer.Serialize(writer, StemExclusionValue, options); + } + + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("swedish"); + writer.WriteEndObject(); + } + + SwedishAnalyzer IBuildableDescriptor.Build() => new() + { + StemExclusion = StemExclusionValue, + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ThaiAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ThaiAnalyzer.g.cs new file mode 100644 index 00000000000..bdf26a797f3 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ThaiAnalyzer.g.cs @@ -0,0 +1,90 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Analysis; + +public sealed partial class ThaiAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "thai"; +} + +public sealed partial class ThaiAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal ThaiAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public ThaiAnalyzerDescriptor() : base() + { + } + + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public ThaiAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public ThaiAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("thai"); + writer.WriteEndObject(); + } + + ThaiAnalyzer IBuildableDescriptor.Build() => new() + { + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/TurkishAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/TurkishAnalyzer.g.cs new file mode 100644 index 00000000000..d4a02ced9d7 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/TurkishAnalyzer.g.cs @@ -0,0 +1,106 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Analysis; + +public sealed partial class TurkishAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stem_exclusion")] + public ICollection? StemExclusion { get; set; } + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "turkish"; +} + +public sealed partial class TurkishAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal TurkishAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public TurkishAnalyzerDescriptor() : base() + { + } + + private ICollection? StemExclusionValue { get; set; } + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public TurkishAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) + { + StemExclusionValue = stemExclusion; + return Self; + } + + public TurkishAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public TurkishAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StemExclusionValue is not null) + { + writer.WritePropertyName("stem_exclusion"); + JsonSerializer.Serialize(writer, StemExclusionValue, options); + } + + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("turkish"); + writer.WriteEndObject(); + } + + TurkishAnalyzer IBuildableDescriptor.Build() => new() + { + StemExclusion = StemExclusionValue, + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Get/GetResult.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Get/GetResult.g.cs index 7354ae69e72..10c904ab709 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Get/GetResult.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Get/GetResult.g.cs @@ -35,6 +35,8 @@ public sealed partial class GetResult public bool Found { get; init; } [JsonInclude, JsonPropertyName("_id")] public string Id { get; init; } + [JsonInclude, JsonPropertyName("_ignored")] + public IReadOnlyCollection? Ignored { get; init; } [JsonInclude, JsonPropertyName("_index")] public string Index { get; init; } [JsonInclude, JsonPropertyName("_primary_term")] diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/DataStreamLifecycleDetails.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/DataStreamLifecycleDetails.g.cs new file mode 100644 index 00000000000..9a0fb2850cc --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/DataStreamLifecycleDetails.g.cs @@ -0,0 +1,38 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Core.HealthReport; + +public sealed partial class DataStreamLifecycleDetails +{ + [JsonInclude, JsonPropertyName("stagnating_backing_indices")] + public IReadOnlyCollection? StagnatingBackingIndices { get; init; } + [JsonInclude, JsonPropertyName("stagnating_backing_indices_count")] + public int StagnatingBackingIndicesCount { get; init; } + [JsonInclude, JsonPropertyName("total_backing_indices_in_error")] + public int TotalBackingIndicesInError { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/DataStreamLifecycleIndicator.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/DataStreamLifecycleIndicator.g.cs new file mode 100644 index 00000000000..e4414a96c0e --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/DataStreamLifecycleIndicator.g.cs @@ -0,0 +1,47 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Core.HealthReport; + +/// +/// +/// DATA_STREAM_LIFECYCLE +/// +/// +public sealed partial class DataStreamLifecycleIndicator +{ + [JsonInclude, JsonPropertyName("details")] + public Elastic.Clients.Elasticsearch.Serverless.Core.HealthReport.DataStreamLifecycleDetails? Details { get; init; } + [JsonInclude, JsonPropertyName("diagnosis")] + public IReadOnlyCollection? Diagnosis { get; init; } + [JsonInclude, JsonPropertyName("impacts")] + public IReadOnlyCollection? Impacts { get; init; } + [JsonInclude, JsonPropertyName("status")] + public Elastic.Clients.Elasticsearch.Serverless.Core.HealthReport.IndicatorHealthStatus Status { get; init; } + [JsonInclude, JsonPropertyName("symptom")] + public string Symptom { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/Indicators.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/Indicators.g.cs index aaf3e6556b4..421938267ef 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/Indicators.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/Indicators.g.cs @@ -29,6 +29,8 @@ namespace Elastic.Clients.Elasticsearch.Serverless.Core.HealthReport; public sealed partial class Indicators { + [JsonInclude, JsonPropertyName("data_stream_lifecycle")] + public Elastic.Clients.Elasticsearch.Serverless.Core.HealthReport.DataStreamLifecycleIndicator? DataStreamLifecycle { get; init; } [JsonInclude, JsonPropertyName("disk")] public Elastic.Clients.Elasticsearch.Serverless.Core.HealthReport.DiskIndicator? Disk { get; init; } [JsonInclude, JsonPropertyName("ilm")] diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/HotThread.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/StagnatingBackingIndices.g.cs similarity index 75% rename from src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/HotThread.g.cs rename to src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/StagnatingBackingIndices.g.cs index 1cc9efd423f..1762c30d430 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/HotThread.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/StagnatingBackingIndices.g.cs @@ -25,16 +25,14 @@ using System.Text.Json; using System.Text.Json.Serialization; -namespace Elastic.Clients.Elasticsearch.Serverless.Nodes; +namespace Elastic.Clients.Elasticsearch.Serverless.Core.HealthReport; -public sealed partial class HotThread +public sealed partial class StagnatingBackingIndices { - [JsonInclude, JsonPropertyName("hosts")] - public IReadOnlyCollection Hosts { get; init; } - [JsonInclude, JsonPropertyName("node_id")] - public string NodeId { get; init; } - [JsonInclude, JsonPropertyName("node_name")] - public string NodeName { get; init; } - [JsonInclude, JsonPropertyName("threads")] - public IReadOnlyCollection Threads { get; init; } + [JsonInclude, JsonPropertyName("first_occurrence_timestamp")] + public long FirstOccurrenceTimestamp { get; init; } + [JsonInclude, JsonPropertyName("index_name")] + public string IndexName { get; init; } + [JsonInclude, JsonPropertyName("retry_count")] + public int RetryCount { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/HighlightField.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/HighlightField.g.cs index 3dae061b55b..7d5a7e8b08c 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/HighlightField.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/HighlightField.g.cs @@ -29,9 +29,6 @@ namespace Elastic.Clients.Elasticsearch.Serverless.Core.Search; public sealed partial class HighlightField { - [JsonInclude, JsonPropertyName("analyzer")] - public Elastic.Clients.Elasticsearch.Serverless.Analysis.IAnalyzer? Analyzer { get; set; } - /// /// /// A string that contains each boundary character. @@ -202,7 +199,6 @@ public HighlightFieldDescriptor() : base() { } - private Elastic.Clients.Elasticsearch.Serverless.Analysis.IAnalyzer? AnalyzerValue { get; set; } private string? BoundaryCharsValue { get; set; } private int? BoundaryMaxScanValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Core.Search.BoundaryScanner? BoundaryScannerValue { get; set; } @@ -228,12 +224,6 @@ public HighlightFieldDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlighterTagsSchema? TagsSchemaValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlighterType? TypeValue { get; set; } - public HighlightFieldDescriptor Analyzer(Elastic.Clients.Elasticsearch.Serverless.Analysis.IAnalyzer? analyzer) - { - AnalyzerValue = analyzer; - return Self; - } - /// /// /// A string that contains each boundary character. @@ -487,12 +477,6 @@ public HighlightFieldDescriptor Type(Elastic.Clients.Elasticsearch.Se protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); - if (AnalyzerValue is not null) - { - writer.WritePropertyName("analyzer"); - JsonSerializer.Serialize(writer, AnalyzerValue, options); - } - if (!string.IsNullOrEmpty(BoundaryCharsValue)) { writer.WritePropertyName("boundary_chars"); @@ -647,7 +631,6 @@ public HighlightFieldDescriptor() : base() { } - private Elastic.Clients.Elasticsearch.Serverless.Analysis.IAnalyzer? AnalyzerValue { get; set; } private string? BoundaryCharsValue { get; set; } private int? BoundaryMaxScanValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Core.Search.BoundaryScanner? BoundaryScannerValue { get; set; } @@ -673,12 +656,6 @@ public HighlightFieldDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlighterTagsSchema? TagsSchemaValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlighterType? TypeValue { get; set; } - public HighlightFieldDescriptor Analyzer(Elastic.Clients.Elasticsearch.Serverless.Analysis.IAnalyzer? analyzer) - { - AnalyzerValue = analyzer; - return Self; - } - /// /// /// A string that contains each boundary character. @@ -932,12 +909,6 @@ public HighlightFieldDescriptor Type(Elastic.Clients.Elasticsearch.Serverless.Co protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); - if (AnalyzerValue is not null) - { - writer.WritePropertyName("analyzer"); - JsonSerializer.Serialize(writer, AnalyzerValue, options); - } - if (!string.IsNullOrEmpty(BoundaryCharsValue)) { writer.WritePropertyName("boundary_chars"); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.QueryRules.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.QueryRules.g.cs index d7dd96264cf..a363213625d 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.QueryRules.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.QueryRules.g.cs @@ -144,7 +144,9 @@ public override void Write(Utf8JsonWriter writer, QueryRuleCriteriaType value, J public enum QueryRuleType { [EnumMember(Value = "pinned")] - Pinned + Pinned, + [EnumMember(Value = "exclude")] + Exclude } internal sealed class QueryRuleTypeConverter : JsonConverter @@ -156,6 +158,8 @@ public override QueryRuleType Read(ref Utf8JsonReader reader, Type typeToConvert { case "pinned": return QueryRuleType.Pinned; + case "exclude": + return QueryRuleType.Exclude; } ThrowHelper.ThrowJsonException(); @@ -169,6 +173,9 @@ public override void Write(Utf8JsonWriter writer, QueryRuleType value, JsonSeria case QueryRuleType.Pinned: writer.WriteStringValue("pinned"); return; + case QueryRuleType.Exclude: + writer.WriteStringValue("exclude"); + return; } writer.WriteNullValue(); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStream.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStream.g.cs index efc62d2ae0c..c703759cbde 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStream.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStream.g.cs @@ -37,6 +37,14 @@ public sealed partial class DataStream [JsonInclude, JsonPropertyName("allow_custom_routing")] public bool? AllowCustomRouting { get; init; } + /// + /// + /// Information about failure store backing indices + /// + /// + [JsonInclude, JsonPropertyName("failure_store")] + public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.FailureStore? FailureStore { get; init; } + /// /// /// Current generation for the data stream. This number acts as a cumulative count of the stream’s rollovers, starting at 1. @@ -122,6 +130,14 @@ public sealed partial class DataStream [JsonInclude, JsonPropertyName("replicated")] public bool? Replicated { get; init; } + /// + /// + /// If true, the next write to this data stream will trigger a rollover first and the document will be indexed in the new backing index. If the rollover fails the indexing request will fail too. + /// + /// + [JsonInclude, JsonPropertyName("rollover_on_write")] + public bool RolloverOnWrite { get; init; } + /// /// /// Health status of the data stream. diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamIndex.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamIndex.g.cs index 56f571033ad..db163b2f1aa 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamIndex.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamIndex.g.cs @@ -59,7 +59,7 @@ public sealed partial class DataStreamIndex /// /// [JsonInclude, JsonPropertyName("managed_by")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.ManagedBy ManagedBy { get; init; } + public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.ManagedBy? ManagedBy { get; init; } /// /// @@ -67,5 +67,5 @@ public sealed partial class DataStreamIndex /// /// [JsonInclude, JsonPropertyName("prefer_ilm")] - public bool PreferIlm { get; init; } + public bool? PreferIlm { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/FailureStore.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/FailureStore.g.cs new file mode 100644 index 00000000000..913aaeb21f2 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/FailureStore.g.cs @@ -0,0 +1,38 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; + +public sealed partial class FailureStore +{ + [JsonInclude, JsonPropertyName("enabled")] + public bool Enabled { get; init; } + [JsonInclude, JsonPropertyName("indices")] + public IReadOnlyCollection Indices { get; init; } + [JsonInclude, JsonPropertyName("rollover_on_write")] + public bool RolloverOnWrite { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetResponse.g.cs index 0534f279baa..09773e266f6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetResponse.g.cs @@ -34,6 +34,8 @@ public sealed partial class GetResponse : ElasticsearchResponse public bool Found { get; init; } [JsonInclude, JsonPropertyName("_id")] public string Id { get; init; } + [JsonInclude, JsonPropertyName("_ignored")] + public IReadOnlyCollection? Ignored { get; init; } [JsonInclude, JsonPropertyName("_index")] public string Index { get; init; } [JsonInclude, JsonPropertyName("_primary_term")] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/HotThreadsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/HotThreadsResponse.g.cs index c64300ec776..f1677d7d5c5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/HotThreadsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/HotThreadsResponse.g.cs @@ -28,6 +28,4 @@ namespace Elastic.Clients.Elasticsearch.Nodes; public sealed partial class HotThreadsResponse : ElasticsearchResponse { - [JsonInclude, JsonPropertyName("hot_threads")] - public IReadOnlyCollection HotThreads { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/PutSynonymRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/PutSynonymRequest.g.cs index 86306a6f239..dc2d3d4ca2e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/PutSynonymRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/PutSynonymRequest.g.cs @@ -58,6 +58,7 @@ public PutSynonymRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Requ /// /// [JsonInclude, JsonPropertyName("synonyms_set")] + [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Synonyms.SynonymRule))] public ICollection SynonymsSet { get; set; } } @@ -140,32 +141,30 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o if (SynonymsSetDescriptor is not null) { writer.WritePropertyName("synonyms_set"); - writer.WriteStartArray(); JsonSerializer.Serialize(writer, SynonymsSetDescriptor, options); - writer.WriteEndArray(); } else if (SynonymsSetDescriptorAction is not null) { writer.WritePropertyName("synonyms_set"); - writer.WriteStartArray(); JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Synonyms.SynonymRuleDescriptor(SynonymsSetDescriptorAction), options); - writer.WriteEndArray(); } else if (SynonymsSetDescriptorActions is not null) { writer.WritePropertyName("synonyms_set"); - writer.WriteStartArray(); + if (SynonymsSetDescriptorActions.Length != 1) + writer.WriteStartArray(); foreach (var action in SynonymsSetDescriptorActions) { JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Synonyms.SynonymRuleDescriptor(action), options); } - writer.WriteEndArray(); + if (SynonymsSetDescriptorActions.Length != 1) + writer.WriteEndArray(); } else { writer.WritePropertyName("synonyms_set"); - JsonSerializer.Serialize(writer, SynonymsSetValue, options); + SingleOrManySerializationHelper.Serialize(SynonymsSetValue, writer, options); } writer.WriteEndObject(); @@ -251,32 +250,30 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o if (SynonymsSetDescriptor is not null) { writer.WritePropertyName("synonyms_set"); - writer.WriteStartArray(); JsonSerializer.Serialize(writer, SynonymsSetDescriptor, options); - writer.WriteEndArray(); } else if (SynonymsSetDescriptorAction is not null) { writer.WritePropertyName("synonyms_set"); - writer.WriteStartArray(); JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Synonyms.SynonymRuleDescriptor(SynonymsSetDescriptorAction), options); - writer.WriteEndArray(); } else if (SynonymsSetDescriptorActions is not null) { writer.WritePropertyName("synonyms_set"); - writer.WriteStartArray(); + if (SynonymsSetDescriptorActions.Length != 1) + writer.WriteStartArray(); foreach (var action in SynonymsSetDescriptorActions) { JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Synonyms.SynonymRuleDescriptor(action), options); } - writer.WriteEndArray(); + if (SynonymsSetDescriptorActions.Length != 1) + writer.WriteEndArray(); } else { writer.WritePropertyName("synonyms_set"); - JsonSerializer.Serialize(writer, SynonymsSetValue, options); + SingleOrManySerializationHelper.Serialize(SynonymsSetValue, writer, options); } writer.WriteEndObject(); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRequest.g.cs index 05010dd573b..7449285727d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRequest.g.cs @@ -116,6 +116,13 @@ public sealed partial class UpdateByQueryRequestParameters : RequestParameters /// public string? Preference { get => Q("preference"); set => Q("preference", value); } + /// + /// + /// Query in the Lucene query string syntax. + /// + /// + public string? QueryLuceneSyntax { get => Q("q"); set => Q("q", value); } + /// /// /// If true, Elasticsearch refreshes affected shards to make the operation visible to search. @@ -360,6 +367,14 @@ public UpdateByQueryRequest(Elastic.Clients.Elasticsearch.Indices indices) : bas [JsonIgnore] public string? Preference { get => Q("preference"); set => Q("preference", value); } + /// + /// + /// Query in the Lucene query string syntax. + /// + /// + [JsonIgnore] + public string? QueryLuceneSyntax { get => Q("q"); set => Q("q", value); } + /// /// /// If true, Elasticsearch refreshes affected shards to make the operation visible to search. @@ -582,6 +597,7 @@ public UpdateByQueryRequestDescriptor() : this(typeof(TDocument)) public UpdateByQueryRequestDescriptor Lenient(bool? lenient = true) => Qs("lenient", lenient); public UpdateByQueryRequestDescriptor Pipeline(string? pipeline) => Qs("pipeline", pipeline); public UpdateByQueryRequestDescriptor Preference(string? preference) => Qs("preference", preference); + public UpdateByQueryRequestDescriptor QueryLuceneSyntax(string? queryLuceneSyntax) => Qs("q", queryLuceneSyntax); public UpdateByQueryRequestDescriptor Refresh(bool? refresh = true) => Qs("refresh", refresh); public UpdateByQueryRequestDescriptor RequestCache(bool? requestCache = true) => Qs("request_cache", requestCache); public UpdateByQueryRequestDescriptor RequestsPerSecond(float? requestsPerSecond) => Qs("requests_per_second", requestsPerSecond); @@ -828,6 +844,7 @@ public UpdateByQueryRequestDescriptor(Elastic.Clients.Elasticsearch.Indices indi public UpdateByQueryRequestDescriptor Lenient(bool? lenient = true) => Qs("lenient", lenient); public UpdateByQueryRequestDescriptor Pipeline(string? pipeline) => Qs("pipeline", pipeline); public UpdateByQueryRequestDescriptor Preference(string? preference) => Qs("preference", preference); + public UpdateByQueryRequestDescriptor QueryLuceneSyntax(string? queryLuceneSyntax) => Qs("q", queryLuceneSyntax); public UpdateByQueryRequestDescriptor Refresh(bool? refresh = true) => Qs("refresh", refresh); public UpdateByQueryRequestDescriptor RequestCache(bool? requestCache = true) => Qs("request_cache", requestCache); public UpdateByQueryRequestDescriptor RequestsPerSecond(float? requestsPerSecond) => Qs("requests_per_second", requestsPerSecond); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/Analyzers.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/Analyzers.g.cs index f6fc616b0f0..aaec84a9912 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/Analyzers.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/Analyzers.g.cs @@ -66,18 +66,87 @@ public AnalyzersDescriptor() : base(new Analyzers()) { } + public AnalyzersDescriptor Arabic(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Arabic(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Arabic(string analyzerName, ArabicAnalyzer arabicAnalyzer) => AssignVariant(analyzerName, arabicAnalyzer); + public AnalyzersDescriptor Armenian(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Armenian(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Armenian(string analyzerName, ArmenianAnalyzer armenianAnalyzer) => AssignVariant(analyzerName, armenianAnalyzer); + public AnalyzersDescriptor Basque(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Basque(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Basque(string analyzerName, BasqueAnalyzer basqueAnalyzer) => AssignVariant(analyzerName, basqueAnalyzer); + public AnalyzersDescriptor Bengali(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Bengali(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Bengali(string analyzerName, BengaliAnalyzer bengaliAnalyzer) => AssignVariant(analyzerName, bengaliAnalyzer); + public AnalyzersDescriptor Brazilian(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Brazilian(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Brazilian(string analyzerName, BrazilianAnalyzer brazilianAnalyzer) => AssignVariant(analyzerName, brazilianAnalyzer); + public AnalyzersDescriptor Bulgarian(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Bulgarian(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Bulgarian(string analyzerName, BulgarianAnalyzer bulgarianAnalyzer) => AssignVariant(analyzerName, bulgarianAnalyzer); + public AnalyzersDescriptor Catalan(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Catalan(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Catalan(string analyzerName, CatalanAnalyzer catalanAnalyzer) => AssignVariant(analyzerName, catalanAnalyzer); + public AnalyzersDescriptor Chinese(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Chinese(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Chinese(string analyzerName, ChineseAnalyzer chineseAnalyzer) => AssignVariant(analyzerName, chineseAnalyzer); + public AnalyzersDescriptor Cjk(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Cjk(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Cjk(string analyzerName, CjkAnalyzer cjkAnalyzer) => AssignVariant(analyzerName, cjkAnalyzer); public AnalyzersDescriptor Custom(string analyzerName) => AssignVariant(analyzerName, null); public AnalyzersDescriptor Custom(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); public AnalyzersDescriptor Custom(string analyzerName, CustomAnalyzer customAnalyzer) => AssignVariant(analyzerName, customAnalyzer); + public AnalyzersDescriptor Czech(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Czech(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Czech(string analyzerName, CzechAnalyzer czechAnalyzer) => AssignVariant(analyzerName, czechAnalyzer); + public AnalyzersDescriptor Danish(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Danish(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Danish(string analyzerName, DanishAnalyzer danishAnalyzer) => AssignVariant(analyzerName, danishAnalyzer); public AnalyzersDescriptor Dutch(string analyzerName) => AssignVariant(analyzerName, null); public AnalyzersDescriptor Dutch(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); public AnalyzersDescriptor Dutch(string analyzerName, DutchAnalyzer dutchAnalyzer) => AssignVariant(analyzerName, dutchAnalyzer); + public AnalyzersDescriptor English(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor English(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor English(string analyzerName, EnglishAnalyzer englishAnalyzer) => AssignVariant(analyzerName, englishAnalyzer); + public AnalyzersDescriptor Estonian(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Estonian(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Estonian(string analyzerName, EstonianAnalyzer estonianAnalyzer) => AssignVariant(analyzerName, estonianAnalyzer); public AnalyzersDescriptor Fingerprint(string analyzerName) => AssignVariant(analyzerName, null); public AnalyzersDescriptor Fingerprint(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); public AnalyzersDescriptor Fingerprint(string analyzerName, FingerprintAnalyzer fingerprintAnalyzer) => AssignVariant(analyzerName, fingerprintAnalyzer); + public AnalyzersDescriptor Finnish(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Finnish(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Finnish(string analyzerName, FinnishAnalyzer finnishAnalyzer) => AssignVariant(analyzerName, finnishAnalyzer); + public AnalyzersDescriptor French(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor French(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor French(string analyzerName, FrenchAnalyzer frenchAnalyzer) => AssignVariant(analyzerName, frenchAnalyzer); + public AnalyzersDescriptor Galician(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Galician(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Galician(string analyzerName, GalicianAnalyzer galicianAnalyzer) => AssignVariant(analyzerName, galicianAnalyzer); + public AnalyzersDescriptor German(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor German(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor German(string analyzerName, GermanAnalyzer germanAnalyzer) => AssignVariant(analyzerName, germanAnalyzer); + public AnalyzersDescriptor Greek(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Greek(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Greek(string analyzerName, GreekAnalyzer greekAnalyzer) => AssignVariant(analyzerName, greekAnalyzer); + public AnalyzersDescriptor Hindi(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Hindi(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Hindi(string analyzerName, HindiAnalyzer hindiAnalyzer) => AssignVariant(analyzerName, hindiAnalyzer); + public AnalyzersDescriptor Hungarian(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Hungarian(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Hungarian(string analyzerName, HungarianAnalyzer hungarianAnalyzer) => AssignVariant(analyzerName, hungarianAnalyzer); public AnalyzersDescriptor Icu(string analyzerName) => AssignVariant(analyzerName, null); public AnalyzersDescriptor Icu(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); public AnalyzersDescriptor Icu(string analyzerName, IcuAnalyzer icuAnalyzer) => AssignVariant(analyzerName, icuAnalyzer); + public AnalyzersDescriptor Indonesian(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Indonesian(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Indonesian(string analyzerName, IndonesianAnalyzer indonesianAnalyzer) => AssignVariant(analyzerName, indonesianAnalyzer); + public AnalyzersDescriptor Irish(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Irish(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Irish(string analyzerName, IrishAnalyzer irishAnalyzer) => AssignVariant(analyzerName, irishAnalyzer); + public AnalyzersDescriptor Italian(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Italian(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Italian(string analyzerName, ItalianAnalyzer italianAnalyzer) => AssignVariant(analyzerName, italianAnalyzer); public AnalyzersDescriptor Keyword(string analyzerName) => AssignVariant(analyzerName, null); public AnalyzersDescriptor Keyword(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); public AnalyzersDescriptor Keyword(string analyzerName, KeywordAnalyzer keywordAnalyzer) => AssignVariant(analyzerName, keywordAnalyzer); @@ -87,24 +156,63 @@ public AnalyzersDescriptor() : base(new Analyzers()) public AnalyzersDescriptor Language(string analyzerName) => AssignVariant(analyzerName, null); public AnalyzersDescriptor Language(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); public AnalyzersDescriptor Language(string analyzerName, LanguageAnalyzer languageAnalyzer) => AssignVariant(analyzerName, languageAnalyzer); + public AnalyzersDescriptor Latvian(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Latvian(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Latvian(string analyzerName, LatvianAnalyzer latvianAnalyzer) => AssignVariant(analyzerName, latvianAnalyzer); + public AnalyzersDescriptor Lithuanian(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Lithuanian(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Lithuanian(string analyzerName, LithuanianAnalyzer lithuanianAnalyzer) => AssignVariant(analyzerName, lithuanianAnalyzer); public AnalyzersDescriptor Nori(string analyzerName) => AssignVariant(analyzerName, null); public AnalyzersDescriptor Nori(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); public AnalyzersDescriptor Nori(string analyzerName, NoriAnalyzer noriAnalyzer) => AssignVariant(analyzerName, noriAnalyzer); + public AnalyzersDescriptor Norwegian(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Norwegian(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Norwegian(string analyzerName, NorwegianAnalyzer norwegianAnalyzer) => AssignVariant(analyzerName, norwegianAnalyzer); public AnalyzersDescriptor Pattern(string analyzerName) => AssignVariant(analyzerName, null); public AnalyzersDescriptor Pattern(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); public AnalyzersDescriptor Pattern(string analyzerName, PatternAnalyzer patternAnalyzer) => AssignVariant(analyzerName, patternAnalyzer); + public AnalyzersDescriptor Persian(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Persian(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Persian(string analyzerName, PersianAnalyzer persianAnalyzer) => AssignVariant(analyzerName, persianAnalyzer); + public AnalyzersDescriptor Portuguese(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Portuguese(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Portuguese(string analyzerName, PortugueseAnalyzer portugueseAnalyzer) => AssignVariant(analyzerName, portugueseAnalyzer); + public AnalyzersDescriptor Romanian(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Romanian(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Romanian(string analyzerName, RomanianAnalyzer romanianAnalyzer) => AssignVariant(analyzerName, romanianAnalyzer); + public AnalyzersDescriptor Russian(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Russian(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Russian(string analyzerName, RussianAnalyzer russianAnalyzer) => AssignVariant(analyzerName, russianAnalyzer); + public AnalyzersDescriptor Serbian(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Serbian(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Serbian(string analyzerName, SerbianAnalyzer serbianAnalyzer) => AssignVariant(analyzerName, serbianAnalyzer); public AnalyzersDescriptor Simple(string analyzerName) => AssignVariant(analyzerName, null); public AnalyzersDescriptor Simple(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); public AnalyzersDescriptor Simple(string analyzerName, SimpleAnalyzer simpleAnalyzer) => AssignVariant(analyzerName, simpleAnalyzer); public AnalyzersDescriptor Snowball(string analyzerName) => AssignVariant(analyzerName, null); public AnalyzersDescriptor Snowball(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); public AnalyzersDescriptor Snowball(string analyzerName, SnowballAnalyzer snowballAnalyzer) => AssignVariant(analyzerName, snowballAnalyzer); + public AnalyzersDescriptor Sorani(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Sorani(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Sorani(string analyzerName, SoraniAnalyzer soraniAnalyzer) => AssignVariant(analyzerName, soraniAnalyzer); + public AnalyzersDescriptor Spanish(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Spanish(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Spanish(string analyzerName, SpanishAnalyzer spanishAnalyzer) => AssignVariant(analyzerName, spanishAnalyzer); public AnalyzersDescriptor Standard(string analyzerName) => AssignVariant(analyzerName, null); public AnalyzersDescriptor Standard(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); public AnalyzersDescriptor Standard(string analyzerName, StandardAnalyzer standardAnalyzer) => AssignVariant(analyzerName, standardAnalyzer); public AnalyzersDescriptor Stop(string analyzerName) => AssignVariant(analyzerName, null); public AnalyzersDescriptor Stop(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); public AnalyzersDescriptor Stop(string analyzerName, StopAnalyzer stopAnalyzer) => AssignVariant(analyzerName, stopAnalyzer); + public AnalyzersDescriptor Swedish(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Swedish(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Swedish(string analyzerName, SwedishAnalyzer swedishAnalyzer) => AssignVariant(analyzerName, swedishAnalyzer); + public AnalyzersDescriptor Thai(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Thai(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Thai(string analyzerName, ThaiAnalyzer thaiAnalyzer) => AssignVariant(analyzerName, thaiAnalyzer); + public AnalyzersDescriptor Turkish(string analyzerName) => AssignVariant(analyzerName, null); + public AnalyzersDescriptor Turkish(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); + public AnalyzersDescriptor Turkish(string analyzerName, TurkishAnalyzer turkishAnalyzer) => AssignVariant(analyzerName, turkishAnalyzer); public AnalyzersDescriptor Whitespace(string analyzerName) => AssignVariant(analyzerName, null); public AnalyzersDescriptor Whitespace(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); public AnalyzersDescriptor Whitespace(string analyzerName, WhitespaceAnalyzer whitespaceAnalyzer) => AssignVariant(analyzerName, whitespaceAnalyzer); @@ -124,32 +232,104 @@ public override IAnalyzer Read(ref Utf8JsonReader reader, Type typeToConvert, Js switch (type) { + case "arabic": + return JsonSerializer.Deserialize(ref reader, options); + case "armenian": + return JsonSerializer.Deserialize(ref reader, options); + case "basque": + return JsonSerializer.Deserialize(ref reader, options); + case "bengali": + return JsonSerializer.Deserialize(ref reader, options); + case "brazilian": + return JsonSerializer.Deserialize(ref reader, options); + case "bulgarian": + return JsonSerializer.Deserialize(ref reader, options); + case "catalan": + return JsonSerializer.Deserialize(ref reader, options); + case "chinese": + return JsonSerializer.Deserialize(ref reader, options); + case "cjk": + return JsonSerializer.Deserialize(ref reader, options); case "custom": return JsonSerializer.Deserialize(ref reader, options); + case "czech": + return JsonSerializer.Deserialize(ref reader, options); + case "danish": + return JsonSerializer.Deserialize(ref reader, options); case "dutch": return JsonSerializer.Deserialize(ref reader, options); + case "english": + return JsonSerializer.Deserialize(ref reader, options); + case "estonian": + return JsonSerializer.Deserialize(ref reader, options); case "fingerprint": return JsonSerializer.Deserialize(ref reader, options); + case "finnish": + return JsonSerializer.Deserialize(ref reader, options); + case "french": + return JsonSerializer.Deserialize(ref reader, options); + case "galician": + return JsonSerializer.Deserialize(ref reader, options); + case "german": + return JsonSerializer.Deserialize(ref reader, options); + case "greek": + return JsonSerializer.Deserialize(ref reader, options); + case "hindi": + return JsonSerializer.Deserialize(ref reader, options); + case "hungarian": + return JsonSerializer.Deserialize(ref reader, options); case "icu_analyzer": return JsonSerializer.Deserialize(ref reader, options); + case "indonesian": + return JsonSerializer.Deserialize(ref reader, options); + case "irish": + return JsonSerializer.Deserialize(ref reader, options); + case "italian": + return JsonSerializer.Deserialize(ref reader, options); case "keyword": return JsonSerializer.Deserialize(ref reader, options); case "kuromoji": return JsonSerializer.Deserialize(ref reader, options); case "language": return JsonSerializer.Deserialize(ref reader, options); + case "latvian": + return JsonSerializer.Deserialize(ref reader, options); + case "lithuanian": + return JsonSerializer.Deserialize(ref reader, options); case "nori": return JsonSerializer.Deserialize(ref reader, options); + case "norwegian": + return JsonSerializer.Deserialize(ref reader, options); case "pattern": return JsonSerializer.Deserialize(ref reader, options); + case "persian": + return JsonSerializer.Deserialize(ref reader, options); + case "portuguese": + return JsonSerializer.Deserialize(ref reader, options); + case "romanian": + return JsonSerializer.Deserialize(ref reader, options); + case "russian": + return JsonSerializer.Deserialize(ref reader, options); + case "serbian": + return JsonSerializer.Deserialize(ref reader, options); case "simple": return JsonSerializer.Deserialize(ref reader, options); case "snowball": return JsonSerializer.Deserialize(ref reader, options); + case "sorani": + return JsonSerializer.Deserialize(ref reader, options); + case "spanish": + return JsonSerializer.Deserialize(ref reader, options); case "standard": return JsonSerializer.Deserialize(ref reader, options); case "stop": return JsonSerializer.Deserialize(ref reader, options); + case "swedish": + return JsonSerializer.Deserialize(ref reader, options); + case "thai": + return JsonSerializer.Deserialize(ref reader, options); + case "turkish": + return JsonSerializer.Deserialize(ref reader, options); case "whitespace": return JsonSerializer.Deserialize(ref reader, options); default: @@ -167,18 +347,87 @@ public override void Write(Utf8JsonWriter writer, IAnalyzer value, JsonSerialize switch (value.Type) { + case "arabic": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.ArabicAnalyzer), options); + return; + case "armenian": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.ArmenianAnalyzer), options); + return; + case "basque": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.BasqueAnalyzer), options); + return; + case "bengali": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.BengaliAnalyzer), options); + return; + case "brazilian": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.BrazilianAnalyzer), options); + return; + case "bulgarian": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.BulgarianAnalyzer), options); + return; + case "catalan": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.CatalanAnalyzer), options); + return; + case "chinese": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.ChineseAnalyzer), options); + return; + case "cjk": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.CjkAnalyzer), options); + return; case "custom": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.CustomAnalyzer), options); return; + case "czech": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.CzechAnalyzer), options); + return; + case "danish": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.DanishAnalyzer), options); + return; case "dutch": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.DutchAnalyzer), options); return; + case "english": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.EnglishAnalyzer), options); + return; + case "estonian": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.EstonianAnalyzer), options); + return; case "fingerprint": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.FingerprintAnalyzer), options); return; + case "finnish": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.FinnishAnalyzer), options); + return; + case "french": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.FrenchAnalyzer), options); + return; + case "galician": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.GalicianAnalyzer), options); + return; + case "german": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.GermanAnalyzer), options); + return; + case "greek": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.GreekAnalyzer), options); + return; + case "hindi": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.HindiAnalyzer), options); + return; + case "hungarian": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.HungarianAnalyzer), options); + return; case "icu_analyzer": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.IcuAnalyzer), options); return; + case "indonesian": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.IndonesianAnalyzer), options); + return; + case "irish": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.IrishAnalyzer), options); + return; + case "italian": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.ItalianAnalyzer), options); + return; case "keyword": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.KeywordAnalyzer), options); return; @@ -188,24 +437,63 @@ public override void Write(Utf8JsonWriter writer, IAnalyzer value, JsonSerialize case "language": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.LanguageAnalyzer), options); return; + case "latvian": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.LatvianAnalyzer), options); + return; + case "lithuanian": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.LithuanianAnalyzer), options); + return; case "nori": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.NoriAnalyzer), options); return; + case "norwegian": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.NorwegianAnalyzer), options); + return; case "pattern": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.PatternAnalyzer), options); return; + case "persian": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.PersianAnalyzer), options); + return; + case "portuguese": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.PortugueseAnalyzer), options); + return; + case "romanian": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.RomanianAnalyzer), options); + return; + case "russian": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.RussianAnalyzer), options); + return; + case "serbian": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.SerbianAnalyzer), options); + return; case "simple": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.SimpleAnalyzer), options); return; case "snowball": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.SnowballAnalyzer), options); return; + case "sorani": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.SoraniAnalyzer), options); + return; + case "spanish": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.SpanishAnalyzer), options); + return; case "standard": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.StandardAnalyzer), options); return; case "stop": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.StopAnalyzer), options); return; + case "swedish": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.SwedishAnalyzer), options); + return; + case "thai": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.ThaiAnalyzer), options); + return; + case "turkish": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.TurkishAnalyzer), options); + return; case "whitespace": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.WhitespaceAnalyzer), options); return; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ArabicAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ArabicAnalyzer.g.cs new file mode 100644 index 00000000000..64f5991c499 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ArabicAnalyzer.g.cs @@ -0,0 +1,106 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Analysis; + +public sealed partial class ArabicAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stem_exclusion")] + public ICollection? StemExclusion { get; set; } + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "arabic"; +} + +public sealed partial class ArabicAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal ArabicAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public ArabicAnalyzerDescriptor() : base() + { + } + + private ICollection? StemExclusionValue { get; set; } + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public ArabicAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) + { + StemExclusionValue = stemExclusion; + return Self; + } + + public ArabicAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public ArabicAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StemExclusionValue is not null) + { + writer.WritePropertyName("stem_exclusion"); + JsonSerializer.Serialize(writer, StemExclusionValue, options); + } + + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("arabic"); + writer.WriteEndObject(); + } + + ArabicAnalyzer IBuildableDescriptor.Build() => new() + { + StemExclusion = StemExclusionValue, + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ArmenianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ArmenianAnalyzer.g.cs new file mode 100644 index 00000000000..3641734436a --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ArmenianAnalyzer.g.cs @@ -0,0 +1,106 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Analysis; + +public sealed partial class ArmenianAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stem_exclusion")] + public ICollection? StemExclusion { get; set; } + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "armenian"; +} + +public sealed partial class ArmenianAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal ArmenianAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public ArmenianAnalyzerDescriptor() : base() + { + } + + private ICollection? StemExclusionValue { get; set; } + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public ArmenianAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) + { + StemExclusionValue = stemExclusion; + return Self; + } + + public ArmenianAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public ArmenianAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StemExclusionValue is not null) + { + writer.WritePropertyName("stem_exclusion"); + JsonSerializer.Serialize(writer, StemExclusionValue, options); + } + + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("armenian"); + writer.WriteEndObject(); + } + + ArmenianAnalyzer IBuildableDescriptor.Build() => new() + { + StemExclusion = StemExclusionValue, + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/BasqueAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/BasqueAnalyzer.g.cs new file mode 100644 index 00000000000..9bdabb5b6ef --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/BasqueAnalyzer.g.cs @@ -0,0 +1,106 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Analysis; + +public sealed partial class BasqueAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stem_exclusion")] + public ICollection? StemExclusion { get; set; } + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "basque"; +} + +public sealed partial class BasqueAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal BasqueAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public BasqueAnalyzerDescriptor() : base() + { + } + + private ICollection? StemExclusionValue { get; set; } + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public BasqueAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) + { + StemExclusionValue = stemExclusion; + return Self; + } + + public BasqueAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public BasqueAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StemExclusionValue is not null) + { + writer.WritePropertyName("stem_exclusion"); + JsonSerializer.Serialize(writer, StemExclusionValue, options); + } + + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("basque"); + writer.WriteEndObject(); + } + + BasqueAnalyzer IBuildableDescriptor.Build() => new() + { + StemExclusion = StemExclusionValue, + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/BengaliAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/BengaliAnalyzer.g.cs new file mode 100644 index 00000000000..a9393e534cc --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/BengaliAnalyzer.g.cs @@ -0,0 +1,106 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Analysis; + +public sealed partial class BengaliAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stem_exclusion")] + public ICollection? StemExclusion { get; set; } + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "bengali"; +} + +public sealed partial class BengaliAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal BengaliAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public BengaliAnalyzerDescriptor() : base() + { + } + + private ICollection? StemExclusionValue { get; set; } + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public BengaliAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) + { + StemExclusionValue = stemExclusion; + return Self; + } + + public BengaliAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public BengaliAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StemExclusionValue is not null) + { + writer.WritePropertyName("stem_exclusion"); + JsonSerializer.Serialize(writer, StemExclusionValue, options); + } + + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("bengali"); + writer.WriteEndObject(); + } + + BengaliAnalyzer IBuildableDescriptor.Build() => new() + { + StemExclusion = StemExclusionValue, + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/BrazilianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/BrazilianAnalyzer.g.cs new file mode 100644 index 00000000000..edb89e4c735 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/BrazilianAnalyzer.g.cs @@ -0,0 +1,90 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Analysis; + +public sealed partial class BrazilianAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "brazilian"; +} + +public sealed partial class BrazilianAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal BrazilianAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public BrazilianAnalyzerDescriptor() : base() + { + } + + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public BrazilianAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public BrazilianAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("brazilian"); + writer.WriteEndObject(); + } + + BrazilianAnalyzer IBuildableDescriptor.Build() => new() + { + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/BulgarianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/BulgarianAnalyzer.g.cs new file mode 100644 index 00000000000..7d08a972858 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/BulgarianAnalyzer.g.cs @@ -0,0 +1,106 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Analysis; + +public sealed partial class BulgarianAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stem_exclusion")] + public ICollection? StemExclusion { get; set; } + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "bulgarian"; +} + +public sealed partial class BulgarianAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal BulgarianAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public BulgarianAnalyzerDescriptor() : base() + { + } + + private ICollection? StemExclusionValue { get; set; } + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public BulgarianAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) + { + StemExclusionValue = stemExclusion; + return Self; + } + + public BulgarianAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public BulgarianAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StemExclusionValue is not null) + { + writer.WritePropertyName("stem_exclusion"); + JsonSerializer.Serialize(writer, StemExclusionValue, options); + } + + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("bulgarian"); + writer.WriteEndObject(); + } + + BulgarianAnalyzer IBuildableDescriptor.Build() => new() + { + StemExclusion = StemExclusionValue, + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CatalanAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CatalanAnalyzer.g.cs new file mode 100644 index 00000000000..d6215912130 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CatalanAnalyzer.g.cs @@ -0,0 +1,106 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Analysis; + +public sealed partial class CatalanAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stem_exclusion")] + public ICollection? StemExclusion { get; set; } + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "catalan"; +} + +public sealed partial class CatalanAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal CatalanAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public CatalanAnalyzerDescriptor() : base() + { + } + + private ICollection? StemExclusionValue { get; set; } + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public CatalanAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) + { + StemExclusionValue = stemExclusion; + return Self; + } + + public CatalanAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public CatalanAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StemExclusionValue is not null) + { + writer.WritePropertyName("stem_exclusion"); + JsonSerializer.Serialize(writer, StemExclusionValue, options); + } + + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("catalan"); + writer.WriteEndObject(); + } + + CatalanAnalyzer IBuildableDescriptor.Build() => new() + { + StemExclusion = StemExclusionValue, + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ChineseAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ChineseAnalyzer.g.cs new file mode 100644 index 00000000000..8a70c33dd66 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ChineseAnalyzer.g.cs @@ -0,0 +1,90 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Analysis; + +public sealed partial class ChineseAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "chinese"; +} + +public sealed partial class ChineseAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal ChineseAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public ChineseAnalyzerDescriptor() : base() + { + } + + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public ChineseAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public ChineseAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("chinese"); + writer.WriteEndObject(); + } + + ChineseAnalyzer IBuildableDescriptor.Build() => new() + { + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CjkAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CjkAnalyzer.g.cs new file mode 100644 index 00000000000..3fb380874ff --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CjkAnalyzer.g.cs @@ -0,0 +1,90 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Analysis; + +public sealed partial class CjkAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "cjk"; +} + +public sealed partial class CjkAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal CjkAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public CjkAnalyzerDescriptor() : base() + { + } + + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public CjkAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public CjkAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("cjk"); + writer.WriteEndObject(); + } + + CjkAnalyzer IBuildableDescriptor.Build() => new() + { + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CzechAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CzechAnalyzer.g.cs new file mode 100644 index 00000000000..85203810347 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CzechAnalyzer.g.cs @@ -0,0 +1,106 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Analysis; + +public sealed partial class CzechAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stem_exclusion")] + public ICollection? StemExclusion { get; set; } + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "czech"; +} + +public sealed partial class CzechAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal CzechAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public CzechAnalyzerDescriptor() : base() + { + } + + private ICollection? StemExclusionValue { get; set; } + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public CzechAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) + { + StemExclusionValue = stemExclusion; + return Self; + } + + public CzechAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public CzechAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StemExclusionValue is not null) + { + writer.WritePropertyName("stem_exclusion"); + JsonSerializer.Serialize(writer, StemExclusionValue, options); + } + + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("czech"); + writer.WriteEndObject(); + } + + CzechAnalyzer IBuildableDescriptor.Build() => new() + { + StemExclusion = StemExclusionValue, + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/DanishAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/DanishAnalyzer.g.cs new file mode 100644 index 00000000000..96f1845395b --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/DanishAnalyzer.g.cs @@ -0,0 +1,90 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Analysis; + +public sealed partial class DanishAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "danish"; +} + +public sealed partial class DanishAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal DanishAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public DanishAnalyzerDescriptor() : base() + { + } + + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public DanishAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public DanishAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("danish"); + writer.WriteEndObject(); + } + + DanishAnalyzer IBuildableDescriptor.Build() => new() + { + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/DutchAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/DutchAnalyzer.g.cs index 751526c6f2c..7fdbe496526 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/DutchAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/DutchAnalyzer.g.cs @@ -29,9 +29,13 @@ namespace Elastic.Clients.Elasticsearch.Analysis; public sealed partial class DutchAnalyzer : IAnalyzer { + [JsonInclude, JsonPropertyName("stem_exclusion")] + public ICollection? StemExclusion { get; set; } [JsonInclude, JsonPropertyName("stopwords")] [SingleOrManyCollectionConverter(typeof(string))] public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } [JsonInclude, JsonPropertyName("type")] public string Type => "dutch"; @@ -45,7 +49,15 @@ public DutchAnalyzerDescriptor() : base() { } + private ICollection? StemExclusionValue { get; set; } private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public DutchAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) + { + StemExclusionValue = stemExclusion; + return Self; + } public DutchAnalyzerDescriptor Stopwords(ICollection? stopwords) { @@ -53,15 +65,33 @@ public DutchAnalyzerDescriptor Stopwords(ICollection? stopwords) return Self; } + public DutchAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); + if (StemExclusionValue is not null) + { + writer.WritePropertyName("stem_exclusion"); + JsonSerializer.Serialize(writer, StemExclusionValue, options); + } + if (StopwordsValue is not null) { writer.WritePropertyName("stopwords"); SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); } + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + writer.WritePropertyName("type"); writer.WriteStringValue("dutch"); writer.WriteEndObject(); @@ -69,6 +99,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o DutchAnalyzer IBuildableDescriptor.Build() => new() { - Stopwords = StopwordsValue + StemExclusion = StemExclusionValue, + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/EnglishAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/EnglishAnalyzer.g.cs new file mode 100644 index 00000000000..bf63091004e --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/EnglishAnalyzer.g.cs @@ -0,0 +1,106 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Analysis; + +public sealed partial class EnglishAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stem_exclusion")] + public ICollection? StemExclusion { get; set; } + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "english"; +} + +public sealed partial class EnglishAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal EnglishAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public EnglishAnalyzerDescriptor() : base() + { + } + + private ICollection? StemExclusionValue { get; set; } + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public EnglishAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) + { + StemExclusionValue = stemExclusion; + return Self; + } + + public EnglishAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public EnglishAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StemExclusionValue is not null) + { + writer.WritePropertyName("stem_exclusion"); + JsonSerializer.Serialize(writer, StemExclusionValue, options); + } + + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("english"); + writer.WriteEndObject(); + } + + EnglishAnalyzer IBuildableDescriptor.Build() => new() + { + StemExclusion = StemExclusionValue, + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/EstonianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/EstonianAnalyzer.g.cs new file mode 100644 index 00000000000..a1e4374a3f5 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/EstonianAnalyzer.g.cs @@ -0,0 +1,90 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Analysis; + +public sealed partial class EstonianAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "estonian"; +} + +public sealed partial class EstonianAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal EstonianAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public EstonianAnalyzerDescriptor() : base() + { + } + + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public EstonianAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public EstonianAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("estonian"); + writer.WriteEndObject(); + } + + EstonianAnalyzer IBuildableDescriptor.Build() => new() + { + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/FinnishAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/FinnishAnalyzer.g.cs new file mode 100644 index 00000000000..26daf3595db --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/FinnishAnalyzer.g.cs @@ -0,0 +1,106 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Analysis; + +public sealed partial class FinnishAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stem_exclusion")] + public ICollection? StemExclusion { get; set; } + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "finnish"; +} + +public sealed partial class FinnishAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal FinnishAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public FinnishAnalyzerDescriptor() : base() + { + } + + private ICollection? StemExclusionValue { get; set; } + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public FinnishAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) + { + StemExclusionValue = stemExclusion; + return Self; + } + + public FinnishAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public FinnishAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StemExclusionValue is not null) + { + writer.WritePropertyName("stem_exclusion"); + JsonSerializer.Serialize(writer, StemExclusionValue, options); + } + + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("finnish"); + writer.WriteEndObject(); + } + + FinnishAnalyzer IBuildableDescriptor.Build() => new() + { + StemExclusion = StemExclusionValue, + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/FrenchAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/FrenchAnalyzer.g.cs new file mode 100644 index 00000000000..71a3152f6f5 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/FrenchAnalyzer.g.cs @@ -0,0 +1,106 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Analysis; + +public sealed partial class FrenchAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stem_exclusion")] + public ICollection? StemExclusion { get; set; } + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "french"; +} + +public sealed partial class FrenchAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal FrenchAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public FrenchAnalyzerDescriptor() : base() + { + } + + private ICollection? StemExclusionValue { get; set; } + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public FrenchAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) + { + StemExclusionValue = stemExclusion; + return Self; + } + + public FrenchAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public FrenchAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StemExclusionValue is not null) + { + writer.WritePropertyName("stem_exclusion"); + JsonSerializer.Serialize(writer, StemExclusionValue, options); + } + + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("french"); + writer.WriteEndObject(); + } + + FrenchAnalyzer IBuildableDescriptor.Build() => new() + { + StemExclusion = StemExclusionValue, + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/GalicianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/GalicianAnalyzer.g.cs new file mode 100644 index 00000000000..f1ddff66f9b --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/GalicianAnalyzer.g.cs @@ -0,0 +1,106 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Analysis; + +public sealed partial class GalicianAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stem_exclusion")] + public ICollection? StemExclusion { get; set; } + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "galician"; +} + +public sealed partial class GalicianAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal GalicianAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public GalicianAnalyzerDescriptor() : base() + { + } + + private ICollection? StemExclusionValue { get; set; } + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public GalicianAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) + { + StemExclusionValue = stemExclusion; + return Self; + } + + public GalicianAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public GalicianAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StemExclusionValue is not null) + { + writer.WritePropertyName("stem_exclusion"); + JsonSerializer.Serialize(writer, StemExclusionValue, options); + } + + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("galician"); + writer.WriteEndObject(); + } + + GalicianAnalyzer IBuildableDescriptor.Build() => new() + { + StemExclusion = StemExclusionValue, + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/GermanAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/GermanAnalyzer.g.cs new file mode 100644 index 00000000000..bd0b04a470f --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/GermanAnalyzer.g.cs @@ -0,0 +1,106 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Analysis; + +public sealed partial class GermanAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stem_exclusion")] + public ICollection? StemExclusion { get; set; } + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "german"; +} + +public sealed partial class GermanAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal GermanAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public GermanAnalyzerDescriptor() : base() + { + } + + private ICollection? StemExclusionValue { get; set; } + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public GermanAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) + { + StemExclusionValue = stemExclusion; + return Self; + } + + public GermanAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public GermanAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StemExclusionValue is not null) + { + writer.WritePropertyName("stem_exclusion"); + JsonSerializer.Serialize(writer, StemExclusionValue, options); + } + + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("german"); + writer.WriteEndObject(); + } + + GermanAnalyzer IBuildableDescriptor.Build() => new() + { + StemExclusion = StemExclusionValue, + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/GreekAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/GreekAnalyzer.g.cs new file mode 100644 index 00000000000..89b4442eddd --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/GreekAnalyzer.g.cs @@ -0,0 +1,90 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Analysis; + +public sealed partial class GreekAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "greek"; +} + +public sealed partial class GreekAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal GreekAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public GreekAnalyzerDescriptor() : base() + { + } + + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public GreekAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public GreekAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("greek"); + writer.WriteEndObject(); + } + + GreekAnalyzer IBuildableDescriptor.Build() => new() + { + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/HindiAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/HindiAnalyzer.g.cs new file mode 100644 index 00000000000..c3142b0a785 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/HindiAnalyzer.g.cs @@ -0,0 +1,106 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Analysis; + +public sealed partial class HindiAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stem_exclusion")] + public ICollection? StemExclusion { get; set; } + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "hindi"; +} + +public sealed partial class HindiAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal HindiAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public HindiAnalyzerDescriptor() : base() + { + } + + private ICollection? StemExclusionValue { get; set; } + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public HindiAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) + { + StemExclusionValue = stemExclusion; + return Self; + } + + public HindiAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public HindiAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StemExclusionValue is not null) + { + writer.WritePropertyName("stem_exclusion"); + JsonSerializer.Serialize(writer, StemExclusionValue, options); + } + + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("hindi"); + writer.WriteEndObject(); + } + + HindiAnalyzer IBuildableDescriptor.Build() => new() + { + StemExclusion = StemExclusionValue, + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/HungarianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/HungarianAnalyzer.g.cs new file mode 100644 index 00000000000..1df50363051 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/HungarianAnalyzer.g.cs @@ -0,0 +1,106 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Analysis; + +public sealed partial class HungarianAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stem_exclusion")] + public ICollection? StemExclusion { get; set; } + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "hungarian"; +} + +public sealed partial class HungarianAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal HungarianAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public HungarianAnalyzerDescriptor() : base() + { + } + + private ICollection? StemExclusionValue { get; set; } + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public HungarianAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) + { + StemExclusionValue = stemExclusion; + return Self; + } + + public HungarianAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public HungarianAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StemExclusionValue is not null) + { + writer.WritePropertyName("stem_exclusion"); + JsonSerializer.Serialize(writer, StemExclusionValue, options); + } + + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("hungarian"); + writer.WriteEndObject(); + } + + HungarianAnalyzer IBuildableDescriptor.Build() => new() + { + StemExclusion = StemExclusionValue, + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/IndonesianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/IndonesianAnalyzer.g.cs new file mode 100644 index 00000000000..a970bc92251 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/IndonesianAnalyzer.g.cs @@ -0,0 +1,106 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Analysis; + +public sealed partial class IndonesianAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stem_exclusion")] + public ICollection? StemExclusion { get; set; } + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "indonesian"; +} + +public sealed partial class IndonesianAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal IndonesianAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public IndonesianAnalyzerDescriptor() : base() + { + } + + private ICollection? StemExclusionValue { get; set; } + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public IndonesianAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) + { + StemExclusionValue = stemExclusion; + return Self; + } + + public IndonesianAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public IndonesianAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StemExclusionValue is not null) + { + writer.WritePropertyName("stem_exclusion"); + JsonSerializer.Serialize(writer, StemExclusionValue, options); + } + + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("indonesian"); + writer.WriteEndObject(); + } + + IndonesianAnalyzer IBuildableDescriptor.Build() => new() + { + StemExclusion = StemExclusionValue, + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/IrishAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/IrishAnalyzer.g.cs new file mode 100644 index 00000000000..eb1d2959527 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/IrishAnalyzer.g.cs @@ -0,0 +1,106 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Analysis; + +public sealed partial class IrishAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stem_exclusion")] + public ICollection? StemExclusion { get; set; } + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "irish"; +} + +public sealed partial class IrishAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal IrishAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public IrishAnalyzerDescriptor() : base() + { + } + + private ICollection? StemExclusionValue { get; set; } + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public IrishAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) + { + StemExclusionValue = stemExclusion; + return Self; + } + + public IrishAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public IrishAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StemExclusionValue is not null) + { + writer.WritePropertyName("stem_exclusion"); + JsonSerializer.Serialize(writer, StemExclusionValue, options); + } + + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("irish"); + writer.WriteEndObject(); + } + + IrishAnalyzer IBuildableDescriptor.Build() => new() + { + StemExclusion = StemExclusionValue, + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ItalianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ItalianAnalyzer.g.cs new file mode 100644 index 00000000000..f3c6ac186c8 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ItalianAnalyzer.g.cs @@ -0,0 +1,106 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Analysis; + +public sealed partial class ItalianAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stem_exclusion")] + public ICollection? StemExclusion { get; set; } + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "italian"; +} + +public sealed partial class ItalianAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal ItalianAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public ItalianAnalyzerDescriptor() : base() + { + } + + private ICollection? StemExclusionValue { get; set; } + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public ItalianAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) + { + StemExclusionValue = stemExclusion; + return Self; + } + + public ItalianAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public ItalianAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StemExclusionValue is not null) + { + writer.WritePropertyName("stem_exclusion"); + JsonSerializer.Serialize(writer, StemExclusionValue, options); + } + + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("italian"); + writer.WriteEndObject(); + } + + ItalianAnalyzer IBuildableDescriptor.Build() => new() + { + StemExclusion = StemExclusionValue, + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LatvianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LatvianAnalyzer.g.cs new file mode 100644 index 00000000000..760fd6484b5 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LatvianAnalyzer.g.cs @@ -0,0 +1,106 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Analysis; + +public sealed partial class LatvianAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stem_exclusion")] + public ICollection? StemExclusion { get; set; } + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "latvian"; +} + +public sealed partial class LatvianAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal LatvianAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public LatvianAnalyzerDescriptor() : base() + { + } + + private ICollection? StemExclusionValue { get; set; } + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public LatvianAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) + { + StemExclusionValue = stemExclusion; + return Self; + } + + public LatvianAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public LatvianAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StemExclusionValue is not null) + { + writer.WritePropertyName("stem_exclusion"); + JsonSerializer.Serialize(writer, StemExclusionValue, options); + } + + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("latvian"); + writer.WriteEndObject(); + } + + LatvianAnalyzer IBuildableDescriptor.Build() => new() + { + StemExclusion = StemExclusionValue, + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LithuanianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LithuanianAnalyzer.g.cs new file mode 100644 index 00000000000..4a5f774ff5d --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LithuanianAnalyzer.g.cs @@ -0,0 +1,106 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Analysis; + +public sealed partial class LithuanianAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stem_exclusion")] + public ICollection? StemExclusion { get; set; } + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "lithuanian"; +} + +public sealed partial class LithuanianAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal LithuanianAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public LithuanianAnalyzerDescriptor() : base() + { + } + + private ICollection? StemExclusionValue { get; set; } + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public LithuanianAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) + { + StemExclusionValue = stemExclusion; + return Self; + } + + public LithuanianAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public LithuanianAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StemExclusionValue is not null) + { + writer.WritePropertyName("stem_exclusion"); + JsonSerializer.Serialize(writer, StemExclusionValue, options); + } + + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("lithuanian"); + writer.WriteEndObject(); + } + + LithuanianAnalyzer IBuildableDescriptor.Build() => new() + { + StemExclusion = StemExclusionValue, + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NorwegianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NorwegianAnalyzer.g.cs new file mode 100644 index 00000000000..873ae454f84 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NorwegianAnalyzer.g.cs @@ -0,0 +1,106 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Analysis; + +public sealed partial class NorwegianAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stem_exclusion")] + public ICollection? StemExclusion { get; set; } + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "norwegian"; +} + +public sealed partial class NorwegianAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal NorwegianAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public NorwegianAnalyzerDescriptor() : base() + { + } + + private ICollection? StemExclusionValue { get; set; } + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public NorwegianAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) + { + StemExclusionValue = stemExclusion; + return Self; + } + + public NorwegianAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public NorwegianAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StemExclusionValue is not null) + { + writer.WritePropertyName("stem_exclusion"); + JsonSerializer.Serialize(writer, StemExclusionValue, options); + } + + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("norwegian"); + writer.WriteEndObject(); + } + + NorwegianAnalyzer IBuildableDescriptor.Build() => new() + { + StemExclusion = StemExclusionValue, + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PersianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PersianAnalyzer.g.cs new file mode 100644 index 00000000000..f889fe2782e --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PersianAnalyzer.g.cs @@ -0,0 +1,90 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Analysis; + +public sealed partial class PersianAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "persian"; +} + +public sealed partial class PersianAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal PersianAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public PersianAnalyzerDescriptor() : base() + { + } + + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public PersianAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public PersianAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("persian"); + writer.WriteEndObject(); + } + + PersianAnalyzer IBuildableDescriptor.Build() => new() + { + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PortugueseAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PortugueseAnalyzer.g.cs new file mode 100644 index 00000000000..871b8aefa64 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PortugueseAnalyzer.g.cs @@ -0,0 +1,106 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Analysis; + +public sealed partial class PortugueseAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stem_exclusion")] + public ICollection? StemExclusion { get; set; } + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "portuguese"; +} + +public sealed partial class PortugueseAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal PortugueseAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public PortugueseAnalyzerDescriptor() : base() + { + } + + private ICollection? StemExclusionValue { get; set; } + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public PortugueseAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) + { + StemExclusionValue = stemExclusion; + return Self; + } + + public PortugueseAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public PortugueseAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StemExclusionValue is not null) + { + writer.WritePropertyName("stem_exclusion"); + JsonSerializer.Serialize(writer, StemExclusionValue, options); + } + + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("portuguese"); + writer.WriteEndObject(); + } + + PortugueseAnalyzer IBuildableDescriptor.Build() => new() + { + StemExclusion = StemExclusionValue, + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/RomanianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/RomanianAnalyzer.g.cs new file mode 100644 index 00000000000..b7b3a587660 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/RomanianAnalyzer.g.cs @@ -0,0 +1,106 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Analysis; + +public sealed partial class RomanianAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stem_exclusion")] + public ICollection? StemExclusion { get; set; } + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "romanian"; +} + +public sealed partial class RomanianAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal RomanianAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public RomanianAnalyzerDescriptor() : base() + { + } + + private ICollection? StemExclusionValue { get; set; } + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public RomanianAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) + { + StemExclusionValue = stemExclusion; + return Self; + } + + public RomanianAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public RomanianAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StemExclusionValue is not null) + { + writer.WritePropertyName("stem_exclusion"); + JsonSerializer.Serialize(writer, StemExclusionValue, options); + } + + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("romanian"); + writer.WriteEndObject(); + } + + RomanianAnalyzer IBuildableDescriptor.Build() => new() + { + StemExclusion = StemExclusionValue, + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/RussianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/RussianAnalyzer.g.cs new file mode 100644 index 00000000000..b1c60d62fb8 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/RussianAnalyzer.g.cs @@ -0,0 +1,106 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Analysis; + +public sealed partial class RussianAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stem_exclusion")] + public ICollection? StemExclusion { get; set; } + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "russian"; +} + +public sealed partial class RussianAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal RussianAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public RussianAnalyzerDescriptor() : base() + { + } + + private ICollection? StemExclusionValue { get; set; } + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public RussianAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) + { + StemExclusionValue = stemExclusion; + return Self; + } + + public RussianAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public RussianAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StemExclusionValue is not null) + { + writer.WritePropertyName("stem_exclusion"); + JsonSerializer.Serialize(writer, StemExclusionValue, options); + } + + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("russian"); + writer.WriteEndObject(); + } + + RussianAnalyzer IBuildableDescriptor.Build() => new() + { + StemExclusion = StemExclusionValue, + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SerbianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SerbianAnalyzer.g.cs new file mode 100644 index 00000000000..26cfb2729d5 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SerbianAnalyzer.g.cs @@ -0,0 +1,106 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Analysis; + +public sealed partial class SerbianAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stem_exclusion")] + public ICollection? StemExclusion { get; set; } + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "serbian"; +} + +public sealed partial class SerbianAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal SerbianAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public SerbianAnalyzerDescriptor() : base() + { + } + + private ICollection? StemExclusionValue { get; set; } + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public SerbianAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) + { + StemExclusionValue = stemExclusion; + return Self; + } + + public SerbianAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public SerbianAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StemExclusionValue is not null) + { + writer.WritePropertyName("stem_exclusion"); + JsonSerializer.Serialize(writer, StemExclusionValue, options); + } + + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("serbian"); + writer.WriteEndObject(); + } + + SerbianAnalyzer IBuildableDescriptor.Build() => new() + { + StemExclusion = StemExclusionValue, + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SoraniAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SoraniAnalyzer.g.cs new file mode 100644 index 00000000000..af879465e82 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SoraniAnalyzer.g.cs @@ -0,0 +1,106 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Analysis; + +public sealed partial class SoraniAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stem_exclusion")] + public ICollection? StemExclusion { get; set; } + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "sorani"; +} + +public sealed partial class SoraniAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal SoraniAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public SoraniAnalyzerDescriptor() : base() + { + } + + private ICollection? StemExclusionValue { get; set; } + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public SoraniAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) + { + StemExclusionValue = stemExclusion; + return Self; + } + + public SoraniAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public SoraniAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StemExclusionValue is not null) + { + writer.WritePropertyName("stem_exclusion"); + JsonSerializer.Serialize(writer, StemExclusionValue, options); + } + + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("sorani"); + writer.WriteEndObject(); + } + + SoraniAnalyzer IBuildableDescriptor.Build() => new() + { + StemExclusion = StemExclusionValue, + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SpanishAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SpanishAnalyzer.g.cs new file mode 100644 index 00000000000..bba23e77175 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SpanishAnalyzer.g.cs @@ -0,0 +1,106 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Analysis; + +public sealed partial class SpanishAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stem_exclusion")] + public ICollection? StemExclusion { get; set; } + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "spanish"; +} + +public sealed partial class SpanishAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal SpanishAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public SpanishAnalyzerDescriptor() : base() + { + } + + private ICollection? StemExclusionValue { get; set; } + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public SpanishAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) + { + StemExclusionValue = stemExclusion; + return Self; + } + + public SpanishAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public SpanishAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StemExclusionValue is not null) + { + writer.WritePropertyName("stem_exclusion"); + JsonSerializer.Serialize(writer, StemExclusionValue, options); + } + + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("spanish"); + writer.WriteEndObject(); + } + + SpanishAnalyzer IBuildableDescriptor.Build() => new() + { + StemExclusion = StemExclusionValue, + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SwedishAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SwedishAnalyzer.g.cs new file mode 100644 index 00000000000..1158c84638a --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SwedishAnalyzer.g.cs @@ -0,0 +1,106 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Analysis; + +public sealed partial class SwedishAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stem_exclusion")] + public ICollection? StemExclusion { get; set; } + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "swedish"; +} + +public sealed partial class SwedishAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal SwedishAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public SwedishAnalyzerDescriptor() : base() + { + } + + private ICollection? StemExclusionValue { get; set; } + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public SwedishAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) + { + StemExclusionValue = stemExclusion; + return Self; + } + + public SwedishAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public SwedishAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StemExclusionValue is not null) + { + writer.WritePropertyName("stem_exclusion"); + JsonSerializer.Serialize(writer, StemExclusionValue, options); + } + + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("swedish"); + writer.WriteEndObject(); + } + + SwedishAnalyzer IBuildableDescriptor.Build() => new() + { + StemExclusion = StemExclusionValue, + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ThaiAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ThaiAnalyzer.g.cs new file mode 100644 index 00000000000..6ce5aceb322 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ThaiAnalyzer.g.cs @@ -0,0 +1,90 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Analysis; + +public sealed partial class ThaiAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "thai"; +} + +public sealed partial class ThaiAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal ThaiAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public ThaiAnalyzerDescriptor() : base() + { + } + + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public ThaiAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public ThaiAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("thai"); + writer.WriteEndObject(); + } + + ThaiAnalyzer IBuildableDescriptor.Build() => new() + { + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/TurkishAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/TurkishAnalyzer.g.cs new file mode 100644 index 00000000000..29aad7e4200 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/TurkishAnalyzer.g.cs @@ -0,0 +1,106 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Analysis; + +public sealed partial class TurkishAnalyzer : IAnalyzer +{ + [JsonInclude, JsonPropertyName("stem_exclusion")] + public ICollection? StemExclusion { get; set; } + [JsonInclude, JsonPropertyName("stopwords")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection? Stopwords { get; set; } + [JsonInclude, JsonPropertyName("stopwords_path")] + public string? StopwordsPath { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "turkish"; +} + +public sealed partial class TurkishAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal TurkishAnalyzerDescriptor(Action configure) => configure.Invoke(this); + + public TurkishAnalyzerDescriptor() : base() + { + } + + private ICollection? StemExclusionValue { get; set; } + private ICollection? StopwordsValue { get; set; } + private string? StopwordsPathValue { get; set; } + + public TurkishAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) + { + StemExclusionValue = stemExclusion; + return Self; + } + + public TurkishAnalyzerDescriptor Stopwords(ICollection? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public TurkishAnalyzerDescriptor StopwordsPath(string? stopwordsPath) + { + StopwordsPathValue = stopwordsPath; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StemExclusionValue is not null) + { + writer.WritePropertyName("stem_exclusion"); + JsonSerializer.Serialize(writer, StemExclusionValue, options); + } + + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + } + + if (!string.IsNullOrEmpty(StopwordsPathValue)) + { + writer.WritePropertyName("stopwords_path"); + writer.WriteStringValue(StopwordsPathValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("turkish"); + writer.WriteEndObject(); + } + + TurkishAnalyzer IBuildableDescriptor.Build() => new() + { + StemExclusion = StemExclusionValue, + Stopwords = StopwordsValue, + StopwordsPath = StopwordsPathValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Get/GetResult.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Get/GetResult.g.cs index ad4e94dc650..07624ca28ed 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Get/GetResult.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Get/GetResult.g.cs @@ -35,6 +35,8 @@ public sealed partial class GetResult public bool Found { get; init; } [JsonInclude, JsonPropertyName("_id")] public string Id { get; init; } + [JsonInclude, JsonPropertyName("_ignored")] + public IReadOnlyCollection? Ignored { get; init; } [JsonInclude, JsonPropertyName("_index")] public string Index { get; init; } [JsonInclude, JsonPropertyName("_primary_term")] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/DataStreamLifecycleDetails.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/DataStreamLifecycleDetails.g.cs new file mode 100644 index 00000000000..30890b5b810 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/DataStreamLifecycleDetails.g.cs @@ -0,0 +1,38 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Core.HealthReport; + +public sealed partial class DataStreamLifecycleDetails +{ + [JsonInclude, JsonPropertyName("stagnating_backing_indices")] + public IReadOnlyCollection? StagnatingBackingIndices { get; init; } + [JsonInclude, JsonPropertyName("stagnating_backing_indices_count")] + public int StagnatingBackingIndicesCount { get; init; } + [JsonInclude, JsonPropertyName("total_backing_indices_in_error")] + public int TotalBackingIndicesInError { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/DataStreamLifecycleIndicator.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/DataStreamLifecycleIndicator.g.cs new file mode 100644 index 00000000000..24d201253cc --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/DataStreamLifecycleIndicator.g.cs @@ -0,0 +1,47 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Core.HealthReport; + +/// +/// +/// DATA_STREAM_LIFECYCLE +/// +/// +public sealed partial class DataStreamLifecycleIndicator +{ + [JsonInclude, JsonPropertyName("details")] + public Elastic.Clients.Elasticsearch.Core.HealthReport.DataStreamLifecycleDetails? Details { get; init; } + [JsonInclude, JsonPropertyName("diagnosis")] + public IReadOnlyCollection? Diagnosis { get; init; } + [JsonInclude, JsonPropertyName("impacts")] + public IReadOnlyCollection? Impacts { get; init; } + [JsonInclude, JsonPropertyName("status")] + public Elastic.Clients.Elasticsearch.Core.HealthReport.IndicatorHealthStatus Status { get; init; } + [JsonInclude, JsonPropertyName("symptom")] + public string Symptom { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/Indicators.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/Indicators.g.cs index bf8620279de..6cc347b2606 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/Indicators.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/Indicators.g.cs @@ -29,6 +29,8 @@ namespace Elastic.Clients.Elasticsearch.Core.HealthReport; public sealed partial class Indicators { + [JsonInclude, JsonPropertyName("data_stream_lifecycle")] + public Elastic.Clients.Elasticsearch.Core.HealthReport.DataStreamLifecycleIndicator? DataStreamLifecycle { get; init; } [JsonInclude, JsonPropertyName("disk")] public Elastic.Clients.Elasticsearch.Core.HealthReport.DiskIndicator? Disk { get; init; } [JsonInclude, JsonPropertyName("ilm")] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/HotThread.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/StagnatingBackingIndices.g.cs similarity index 75% rename from src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/HotThread.g.cs rename to src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/StagnatingBackingIndices.g.cs index 227961e3922..226ccbd1879 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/HotThread.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/StagnatingBackingIndices.g.cs @@ -25,16 +25,14 @@ using System.Text.Json; using System.Text.Json.Serialization; -namespace Elastic.Clients.Elasticsearch.Nodes; +namespace Elastic.Clients.Elasticsearch.Core.HealthReport; -public sealed partial class HotThread +public sealed partial class StagnatingBackingIndices { - [JsonInclude, JsonPropertyName("hosts")] - public IReadOnlyCollection Hosts { get; init; } - [JsonInclude, JsonPropertyName("node_id")] - public string NodeId { get; init; } - [JsonInclude, JsonPropertyName("node_name")] - public string NodeName { get; init; } - [JsonInclude, JsonPropertyName("threads")] - public IReadOnlyCollection Threads { get; init; } + [JsonInclude, JsonPropertyName("first_occurrence_timestamp")] + public long FirstOccurrenceTimestamp { get; init; } + [JsonInclude, JsonPropertyName("index_name")] + public string IndexName { get; init; } + [JsonInclude, JsonPropertyName("retry_count")] + public int RetryCount { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/ScriptsPainlessExecute/PainlessContextSetup.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/ScriptsPainlessExecute/PainlessContextSetup.g.cs index 78e4cfb84f9..1cb7f9ff331 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/ScriptsPainlessExecute/PainlessContextSetup.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/ScriptsPainlessExecute/PainlessContextSetup.g.cs @@ -52,7 +52,7 @@ public sealed partial class PainlessContextSetup /// /// [JsonInclude, JsonPropertyName("query")] - public Elastic.Clients.Elasticsearch.QueryDsl.Query Query { get; set; } + public Elastic.Clients.Elasticsearch.QueryDsl.Query? Query { get; set; } } public sealed partial class PainlessContextSetupDescriptor : SerializableDescriptor> @@ -65,7 +65,7 @@ public PainlessContextSetupDescriptor() : base() private object DocumentValue { get; set; } private Elastic.Clients.Elasticsearch.IndexName IndexValue { get; set; } - private Elastic.Clients.Elasticsearch.QueryDsl.Query QueryValue { get; set; } + private Elastic.Clients.Elasticsearch.QueryDsl.Query? QueryValue { get; set; } private Elastic.Clients.Elasticsearch.QueryDsl.QueryDescriptor QueryDescriptor { get; set; } private Action> QueryDescriptorAction { get; set; } @@ -97,7 +97,7 @@ public PainlessContextSetupDescriptor Index(Elastic.Clients.Elasticse /// Use this parameter to specify a query for computing a score. /// /// - public PainlessContextSetupDescriptor Query(Elastic.Clients.Elasticsearch.QueryDsl.Query query) + public PainlessContextSetupDescriptor Query(Elastic.Clients.Elasticsearch.QueryDsl.Query? query) { QueryDescriptor = null; QueryDescriptorAction = null; @@ -138,7 +138,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WritePropertyName("query"); JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.QueryDsl.QueryDescriptor(QueryDescriptorAction), options); } - else + else if (QueryValue is not null) { writer.WritePropertyName("query"); JsonSerializer.Serialize(writer, QueryValue, options); @@ -158,7 +158,7 @@ public PainlessContextSetupDescriptor() : base() private object DocumentValue { get; set; } private Elastic.Clients.Elasticsearch.IndexName IndexValue { get; set; } - private Elastic.Clients.Elasticsearch.QueryDsl.Query QueryValue { get; set; } + private Elastic.Clients.Elasticsearch.QueryDsl.Query? QueryValue { get; set; } private Elastic.Clients.Elasticsearch.QueryDsl.QueryDescriptor QueryDescriptor { get; set; } private Action QueryDescriptorAction { get; set; } @@ -190,7 +190,7 @@ public PainlessContextSetupDescriptor Index(Elastic.Clients.Elasticsearch.IndexN /// Use this parameter to specify a query for computing a score. /// /// - public PainlessContextSetupDescriptor Query(Elastic.Clients.Elasticsearch.QueryDsl.Query query) + public PainlessContextSetupDescriptor Query(Elastic.Clients.Elasticsearch.QueryDsl.Query? query) { QueryDescriptor = null; QueryDescriptorAction = null; @@ -231,7 +231,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WritePropertyName("query"); JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.QueryDsl.QueryDescriptor(QueryDescriptorAction), options); } - else + else if (QueryValue is not null) { writer.WritePropertyName("query"); JsonSerializer.Serialize(writer, QueryValue, options); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/HighlightField.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/HighlightField.g.cs index 973bd53575a..ef12eaa8957 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/HighlightField.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/HighlightField.g.cs @@ -29,9 +29,6 @@ namespace Elastic.Clients.Elasticsearch.Core.Search; public sealed partial class HighlightField { - [JsonInclude, JsonPropertyName("analyzer")] - public Elastic.Clients.Elasticsearch.Analysis.IAnalyzer? Analyzer { get; set; } - /// /// /// A string that contains each boundary character. @@ -202,7 +199,6 @@ public HighlightFieldDescriptor() : base() { } - private Elastic.Clients.Elasticsearch.Analysis.IAnalyzer? AnalyzerValue { get; set; } private string? BoundaryCharsValue { get; set; } private int? BoundaryMaxScanValue { get; set; } private Elastic.Clients.Elasticsearch.Core.Search.BoundaryScanner? BoundaryScannerValue { get; set; } @@ -228,12 +224,6 @@ public HighlightFieldDescriptor() : base() private Elastic.Clients.Elasticsearch.Core.Search.HighlighterTagsSchema? TagsSchemaValue { get; set; } private Elastic.Clients.Elasticsearch.Core.Search.HighlighterType? TypeValue { get; set; } - public HighlightFieldDescriptor Analyzer(Elastic.Clients.Elasticsearch.Analysis.IAnalyzer? analyzer) - { - AnalyzerValue = analyzer; - return Self; - } - /// /// /// A string that contains each boundary character. @@ -487,12 +477,6 @@ public HighlightFieldDescriptor Type(Elastic.Clients.Elasticsearch.Co protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); - if (AnalyzerValue is not null) - { - writer.WritePropertyName("analyzer"); - JsonSerializer.Serialize(writer, AnalyzerValue, options); - } - if (!string.IsNullOrEmpty(BoundaryCharsValue)) { writer.WritePropertyName("boundary_chars"); @@ -647,7 +631,6 @@ public HighlightFieldDescriptor() : base() { } - private Elastic.Clients.Elasticsearch.Analysis.IAnalyzer? AnalyzerValue { get; set; } private string? BoundaryCharsValue { get; set; } private int? BoundaryMaxScanValue { get; set; } private Elastic.Clients.Elasticsearch.Core.Search.BoundaryScanner? BoundaryScannerValue { get; set; } @@ -673,12 +656,6 @@ public HighlightFieldDescriptor() : base() private Elastic.Clients.Elasticsearch.Core.Search.HighlighterTagsSchema? TagsSchemaValue { get; set; } private Elastic.Clients.Elasticsearch.Core.Search.HighlighterType? TypeValue { get; set; } - public HighlightFieldDescriptor Analyzer(Elastic.Clients.Elasticsearch.Analysis.IAnalyzer? analyzer) - { - AnalyzerValue = analyzer; - return Self; - } - /// /// /// A string that contains each boundary character. @@ -932,12 +909,6 @@ public HighlightFieldDescriptor Type(Elastic.Clients.Elasticsearch.Core.Search.H protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); - if (AnalyzerValue is not null) - { - writer.WritePropertyName("analyzer"); - JsonSerializer.Serialize(writer, AnalyzerValue, options); - } - if (!string.IsNullOrEmpty(BoundaryCharsValue)) { writer.WritePropertyName("boundary_chars"); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.QueryRules.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.QueryRules.g.cs index 947fbf363cd..2a8f7fef228 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.QueryRules.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.QueryRules.g.cs @@ -144,7 +144,9 @@ public override void Write(Utf8JsonWriter writer, QueryRuleCriteriaType value, J public enum QueryRuleType { [EnumMember(Value = "pinned")] - Pinned + Pinned, + [EnumMember(Value = "exclude")] + Exclude } internal sealed class QueryRuleTypeConverter : JsonConverter @@ -156,6 +158,8 @@ public override QueryRuleType Read(ref Utf8JsonReader reader, Type typeToConvert { case "pinned": return QueryRuleType.Pinned; + case "exclude": + return QueryRuleType.Exclude; } ThrowHelper.ThrowJsonException(); @@ -169,6 +173,9 @@ public override void Write(Utf8JsonWriter writer, QueryRuleType value, JsonSeria case QueryRuleType.Pinned: writer.WriteStringValue("pinned"); return; + case QueryRuleType.Exclude: + writer.WriteStringValue("exclude"); + return; } writer.WriteNullValue(); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStream.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStream.g.cs index fd16fe596b6..cb193e3e25b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStream.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStream.g.cs @@ -37,6 +37,14 @@ public sealed partial class DataStream [JsonInclude, JsonPropertyName("allow_custom_routing")] public bool? AllowCustomRouting { get; init; } + /// + /// + /// Information about failure store backing indices + /// + /// + [JsonInclude, JsonPropertyName("failure_store")] + public Elastic.Clients.Elasticsearch.IndexManagement.FailureStore? FailureStore { get; init; } + /// /// /// Current generation for the data stream. This number acts as a cumulative count of the stream’s rollovers, starting at 1. @@ -122,6 +130,14 @@ public sealed partial class DataStream [JsonInclude, JsonPropertyName("replicated")] public bool? Replicated { get; init; } + /// + /// + /// If true, the next write to this data stream will trigger a rollover first and the document will be indexed in the new backing index. If the rollover fails the indexing request will fail too. + /// + /// + [JsonInclude, JsonPropertyName("rollover_on_write")] + public bool RolloverOnWrite { get; init; } + /// /// /// Health status of the data stream. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamIndex.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamIndex.g.cs index 5a6fbd08b40..956a966132f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamIndex.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamIndex.g.cs @@ -59,7 +59,7 @@ public sealed partial class DataStreamIndex /// /// [JsonInclude, JsonPropertyName("managed_by")] - public Elastic.Clients.Elasticsearch.IndexManagement.ManagedBy ManagedBy { get; init; } + public Elastic.Clients.Elasticsearch.IndexManagement.ManagedBy? ManagedBy { get; init; } /// /// @@ -67,5 +67,5 @@ public sealed partial class DataStreamIndex /// /// [JsonInclude, JsonPropertyName("prefer_ilm")] - public bool PreferIlm { get; init; } + public bool? PreferIlm { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/FailureStore.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/FailureStore.g.cs new file mode 100644 index 00000000000..b33765216e9 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/FailureStore.g.cs @@ -0,0 +1,38 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.IndexManagement; + +public sealed partial class FailureStore +{ + [JsonInclude, JsonPropertyName("enabled")] + public bool Enabled { get; init; } + [JsonInclude, JsonPropertyName("indices")] + public IReadOnlyCollection Indices { get; init; } + [JsonInclude, JsonPropertyName("rollover_on_write")] + public bool RolloverOnWrite { get; init; } +} \ No newline at end of file