Skip to content

Commit a025d2d

Browse files
committed
Add typed keys to async search submit
1 parent 3f5e7d8 commit a025d2d

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/Elastic.Clients.Elasticsearch/FutureGenerated/FutureGenerated.cs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ internal sealed class AggregateDictionaryConverter : JsonConverter<AggregateDict
280280
var nameParts = name.Split('#');
281281

282282
if (nameParts.Length != 2)
283-
throw new JsonException("Unable to parse typed-key from aggregation name");
283+
throw new JsonException($"Unable to parse typed-key from aggregation name '{name}'");
284284

285285
// Bucket-based Aggregates
286286

@@ -2547,4 +2547,16 @@ public sealed partial class GetAsyncSearchRequestDescriptor
25472547
// Any request may contain aggregations so we force typed_keys in order to successfully deserialise them.
25482548
internal override void BeforeRequest() => TypedKeys(true);
25492549
}
2550+
2551+
public partial class AsyncSearchSubmitRequest
2552+
{
2553+
// Any request may contain aggregations so we force typed_keys in order to successfully deserialise them.
2554+
internal override void BeforeRequest() => TypedKeys = true;
2555+
}
2556+
2557+
public partial class AsyncSearchSubmitRequestDescriptor<TDocument>
2558+
{
2559+
// Any request may contain aggregations so we force typed_keys in order to successfully deserialise them.
2560+
internal override void BeforeRequest() => TypedKeys(true);
2561+
}
25502562
}

0 commit comments

Comments
 (0)