Skip to content

Commit 255cad8

Browse files
committed
Fix build
1 parent 29907cd commit 255cad8

File tree

4 files changed

+8
-19
lines changed

4 files changed

+8
-19
lines changed

src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/InferenceResponseResult.g.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public override Elastic.Clients.Elasticsearch.MachineLearning.InferenceResponseR
4141
LocalJsonValue<System.Collections.Generic.IReadOnlyCollection<Elastic.Clients.Elasticsearch.MachineLearning.TrainedModelEntities>?> propEntities = default;
4242
LocalJsonValue<System.Collections.Generic.IReadOnlyCollection<Elastic.Clients.Elasticsearch.MachineLearning.TrainedModelInferenceFeatureImportance>?> propFeatureImportance = default;
4343
LocalJsonValue<bool?> propIsTruncated = default;
44-
LocalJsonValue<System.Collections.Generic.ICollection<System.Collections.Generic.ICollection<object>>?> propPredictedValue = default;
44+
LocalJsonValue<System.Collections.Generic.ICollection<System.Collections.Generic.ICollection<Elastic.Clients.Elasticsearch.FieldValue>>?> propPredictedValue = default;
4545
LocalJsonValue<string?> propPredictedValueSequence = default;
4646
LocalJsonValue<double?> propPredictionProbability = default;
4747
LocalJsonValue<double?> propPredictionScore = default;
@@ -64,7 +64,7 @@ public override Elastic.Clients.Elasticsearch.MachineLearning.InferenceResponseR
6464
continue;
6565
}
6666

67-
if (propPredictedValue.TryReadProperty(ref reader, options, PropPredictedValue, static System.Collections.Generic.ICollection<System.Collections.Generic.ICollection<object>>? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadSingleOrManyCollectionValue<System.Collections.Generic.ICollection<object>>(o, static System.Collections.Generic.ICollection<object> (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadSingleOrManyCollectionValue<object>(o, null)!)))
67+
if (propPredictedValue.TryReadProperty(ref reader, options, PropPredictedValue, static System.Collections.Generic.ICollection<System.Collections.Generic.ICollection<Elastic.Clients.Elasticsearch.FieldValue>>? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadSingleOrManyCollectionValue<System.Collections.Generic.ICollection<Elastic.Clients.Elasticsearch.FieldValue>>(o, static System.Collections.Generic.ICollection<Elastic.Clients.Elasticsearch.FieldValue> (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadSingleOrManyCollectionValue<Elastic.Clients.Elasticsearch.FieldValue>(o, null)!)))
6868
{
6969
continue;
7070
}
@@ -124,7 +124,7 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien
124124
writer.WriteProperty(options, PropEntities, value.Entities, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.IReadOnlyCollection<Elastic.Clients.Elasticsearch.MachineLearning.TrainedModelEntities>? v) => w.WriteCollectionValue<Elastic.Clients.Elasticsearch.MachineLearning.TrainedModelEntities>(o, v, null));
125125
writer.WriteProperty(options, PropFeatureImportance, value.FeatureImportance, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.IReadOnlyCollection<Elastic.Clients.Elasticsearch.MachineLearning.TrainedModelInferenceFeatureImportance>? v) => w.WriteCollectionValue<Elastic.Clients.Elasticsearch.MachineLearning.TrainedModelInferenceFeatureImportance>(o, v, null));
126126
writer.WriteProperty(options, PropIsTruncated, value.IsTruncated, null, null);
127-
writer.WriteProperty(options, PropPredictedValue, value.PredictedValue, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.ICollection<System.Collections.Generic.ICollection<object>>? v) => w.WriteSingleOrManyCollectionValue<System.Collections.Generic.ICollection<object>>(o, v, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.ICollection<object> v) => w.WriteSingleOrManyCollectionValue<object>(o, v, null)));
127+
writer.WriteProperty(options, PropPredictedValue, value.PredictedValue, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.ICollection<System.Collections.Generic.ICollection<Elastic.Clients.Elasticsearch.FieldValue>>? v) => w.WriteSingleOrManyCollectionValue<System.Collections.Generic.ICollection<Elastic.Clients.Elasticsearch.FieldValue>>(o, v, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.ICollection<Elastic.Clients.Elasticsearch.FieldValue> v) => w.WriteSingleOrManyCollectionValue<Elastic.Clients.Elasticsearch.FieldValue>(o, v, null)));
128128
writer.WriteProperty(options, PropPredictedValueSequence, value.PredictedValueSequence, null, null);
129129
writer.WriteProperty(options, PropPredictionProbability, value.PredictionProbability, null, null);
130130
writer.WriteProperty(options, PropPredictionScore, value.PredictionScore, null, null);
@@ -186,7 +186,7 @@ internal InferenceResponseResult(Elastic.Clients.Elasticsearch.Serialization.Jso
186186
/// For classification models, it may be an integer, double, boolean or string depending on prediction type
187187
/// </para>
188188
/// </summary>
189-
public System.Collections.Generic.ICollection<System.Collections.Generic.ICollection<object>>? PredictedValue { get; set; }
189+
public System.Collections.Generic.ICollection<System.Collections.Generic.ICollection<Elastic.Clients.Elasticsearch.FieldValue>>? PredictedValue { get; set; }
190190

191191
/// <summary>
192192
/// <para>

src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkCreateOperationDescriptor.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ public BulkCreateOperationDescriptor<TSource> DynamicTemplates(IDictionary<strin
3636
return Self;
3737
}
3838

39-
public BulkCreateOperationDescriptor<TSource> DynamicTemplates(Action<FluentIDictionaryOfStringString> action)
39+
public BulkCreateOperationDescriptor<TSource> DynamicTemplates(Action<FluentDictionaryOfStringString> action)
4040
{
41-
Instance.DynamicTemplates = FluentIDictionaryOfStringString.Build(action);
41+
Instance.DynamicTemplates = FluentDictionaryOfStringString.Build(action);
4242
return this;
4343
}
4444
}

src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkIndexOperationDescriptor.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ public BulkIndexOperationDescriptor<TSource> DynamicTemplates(IDictionary<string
3636
return Self;
3737
}
3838

39-
public BulkIndexOperationDescriptor<TSource> DynamicTemplates(Action<FluentIDictionaryOfStringString> action)
39+
public BulkIndexOperationDescriptor<TSource> DynamicTemplates(Action<FluentDictionaryOfStringString> action)
4040
{
41-
Instance.DynamicTemplates = FluentIDictionaryOfStringString.Build(action);
41+
Instance.DynamicTemplates = FluentDictionaryOfStringString.Build(action);
4242
return this;
4343
}
4444
}

src/Playground/Program.cs

-11
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,3 @@
1818

1919
var client = new ElasticsearchClient(settings);
2020

21-
var z = await client.SearchAsync<Person>(x => x.Index("person").Query(q => q.GeoShape(gs => gs.Shape(shape => shape.Shape(new {})))));
22-
23-
var r = await client.SearchAsync<Person>(x => x.Index("person").Query(q => q.MatchAll(ma => { })).FilterPath("took"));
24-
25-
foreach (var hit in r.Hits)
26-
{
27-
var highlights = hit.Highlight?["field"];
28-
if (highlights is { Count: > 0 })
29-
{
30-
}
31-
}

0 commit comments

Comments
 (0)