NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
NuGet, #1289 most downloaded on NuGet
This strongly-typed, client library enables working with Elasticsearch. It is the official client maintained and supported by Elastic.
Latest stable
9.5.3
Last release 1 months ago
28 Sep 2026
Ships fairly regularly
a new release about every 2 weeks
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
4 years old
141 releases · first in 2022
Drag across the ruler to compare, or tap a release to open it.
Switch to custom SafeSkip() method that works with partial JSON blocks by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8720
SafeSkip() method that works with partial JSON blocks by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8720
Full Changelog: https://github.com/elastic/elasticsearch-net/compare/8.19.7...8.19.8
Regenerate client by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8706
CompositeAggregation (see #8704)TermQuery (see #8713)See https://github.com/elastic/elasticsearch-net/releases/tag/9.1.8.
Full Changelog: https://github.com/elastic/elasticsearch-net/compare/8.19.6...8.19.7
Your coding agent can read these notes before it upgrades. Set up the MCP server →
BulkResponseItemConverter: Continue after skipping unmapped json member by @MindaugasButkus in https://github.com/elastic/elasticsearch-net/pull/8698
Full Changelog: https://github.com/elastic/elasticsearch-net/compare/8.19.5...8.19.6
Fix deserialization of Context by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8688
Context by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8688Full Changelog: https://github.com/elastic/elasticsearch-net/compare/8.19.4...8.19.5
Introduce RequestResponseConverter and make all non-generated JsonConverters public by @flobernd in https://github.com/elastic/elasticsearch-net/pull/
RequestResponseConverter<T> and make all non-generated JsonConverters public by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8669
Elastic.Clients.Elasticsearch types in documents (e.g. for percolation; see #8003)Elastic.Transport to 0.10.1 by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8681
Full Changelog: https://github.com/elastic/elasticsearch-net/compare/8.19.3...8.19.4
More AOT annotations by @Mpdreamz in https://github.com/elastic/elasticsearch-net/pull/8661
PercentilesItem (https://github.com/elastic/elasticsearch-net/issues/8570)Full Changelog: https://github.com/elastic/elasticsearch-net/compare/8.19.2...8.19.3
Regenerate client by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8656
SourceSerializer for object types (https://github.com/elastic/elasticsearch-net/issues/8648)Full Changelog: https://github.com/elastic/elasticsearch-net/compare/8.19.1...8.19.2
Regenerate client by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8644 and https://github.com/elastic/elasticsearch-net/pull/8645
PercentilesAggregate and improves usability (https://github.com/elastic/elasticsearch-net/issues/8570)TermsvectorRequest.fields (https://github.com/elastic/elasticsearch-net/issues/8641)The type of the Values property for the following classes got changed from the Percentiles union to a simple PercentilesItem collection:
HdrPercentilesAggregateHdrPercentileRanksAggregateTDigestPercentilesAggregateTDigestPercentileRanksAggregatePercentilesBucketAggregateThe Percentiles union type got removed as it's no longer used.
Full Changelog: https://github.com/elastic/elasticsearch-net/compare/8.19.0...8.19.1
For a complete list of improvements in this release, have a look at the 9.0.0 release notes and breaking changes to learn about all breaking changes.
This release backports all improvements of the 9.x client to the 8.x major version of the client.
[!WARNING] Please note that some of the changes in this release are breaking!
For a complete list of improvements in this release, have a look at the 9.0.0 release notes and breaking changes to learn about all breaking changes.
Full Changelog: https://github.com/elastic/elasticsearch-net/compare/8.19.0-preview.4...8.19.0
Fix KeyValuePairConverter by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8579
KeyValuePairConverter by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8579Full Changelog: https://github.com/elastic/elasticsearch-net/compare/8.18.2...8.18.3
Increase MaxDepth to 512 for internal request/response type serializer by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8573
MaxDepth to 512 for internal request/response type serializer by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8573KeyValuePairConverter to work with non IUrlParameter keys by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8568Full Changelog: https://github.com/elastic/elasticsearch-net/compare/8.18.1...8.18.2
Fix (de-)serialization of SnapshotShardFailure.ShardId
SnapshotShardFailure.ShardIdFull Changelog: https://github.com/elastic/elasticsearch-net/compare/8.18.0...8.18.1
## What's Changed * Regenerate client for 8.18 Full Changelog: https://github.com/elastic/elasticsearch-net/compare/8.17.4...8.18.0
Full Changelog: https://github.com/elastic/elasticsearch-net/compare/8.17.4...8.18.0
Fix serialization of Names by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8486
Names by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8486Full Changelog: https://github.com/elastic/elasticsearch-net/compare/8.17.3...8.17.4
Regenerate client using the latest specification by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8476
DenseVectorIndexOptionsType and DenseVectorSimilarity enumsFull Changelog: https://github.com/elastic/elasticsearch-net/compare/8.17.2...8.17.3
Regenerate client using the latest specification by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8472
EnableThreadPoolStats and EnableTcpStats to be enabled by defaultFull Changelog: https://github.com/elastic/elasticsearch-net/compare/8.17.1...8.17.2
Fix potential ArgumentException with ConditionalWeakTable by @gpetrou in https://github.com/elastic/elasticsearch-net/pull/8444
Full Changelog: https://github.com/elastic/elasticsearch-net/compare/8.17.0...8.17.1
Update Elastic.Transport to 0.5.7 by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8433
Elastic.Transport to 0.5.7 by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8433
PostData.MultiJson not working correctly when DisableDirectStreaming is used.Full Changelog: https://github.com/elastic/elasticsearch-net/compare/8.16.3...8.17.0
Fix RequestConfiguration by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8426
RequestConfiguration by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8426Full Changelog: https://github.com/elastic/elasticsearch-net/compare/8.16.2...8.16.3
Update Elastic.Transport to 0.5.6 by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8422
Elastic.Transport to 0.5.6 by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8422
NullReferenceException when instrumentation is usedFull Changelog: https://github.com/elastic/elasticsearch-net/compare/8.16.1...8.16.2
Add API Reference Documentation by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8228
Elastic.Transport to 0.5.5 by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8421Full Changelog: https://github.com/elastic/elasticsearch-net/compare/8.16.0...8.16.1
If you do not use the low level transport, you won't experience any breaking change
net6 target (end of support)Elastic.Transport to 0.5.2 by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8405 ( :boom: )
TermsQuery.Term property got renamed back to TermsQuery.Terms ( :boom: )
IpLocationProcessorTextExpansionQuery and WeightedTokensQuery ( :boom: )Full Changelog: https://github.com/elastic/elasticsearch-net/compare/8.15.10...8.16.0
Regenerate client using the latest specification by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8388
IndicesPrivilegesDenseVectorProperty usabilityCommunityIDProcessorDateProcessorFingerprintProcecssorGrokProcessorNetworkDirectionProcessorRedactProcessorRegisteredDomainProcessorTerminateProcessorElastic.Transport.Extensions namespace which can be used for easy (de-)serialization without having to know details about the underlaying serializer implementation:
Deserialize(Serializer, JsonElement, Type, MemoryStreamFactory)Deserialize(Serializer, JsonNode, Type, MemoryStreamFactory)Deserialize(Serializer, ReadOnlySpan<Byte>, Type, MemoryStreamFactory)Deserialize(Serializer, ReadOnlySpan<Char>, Type, MemoryStreamFactory)Deserialize(Serializer, Utf8JsonReader&, Type, MemoryStreamFactory)Deserialize<T>(Serializer, JsonElement, MemoryStreamFactory)Deserialize<T>(Serializer, JsonNode, MemoryStreamFactory)Deserialize<T>(Serializer, ReadOnlySpan<Byte>, MemoryStreamFactory)Deserialize<T>(Serializer, ReadOnlySpan<Char>, MemoryStreamFactory)Deserialize<T>(Serializer, Utf8JsonReader&, MemoryStreamFactory)Serialize(Serializer, Object, Type, Utf8JsonWriter, MemoryStreamFactory, SerializationFormatting)Serialize(Serializer, Object, Type, Utf8JsonWriter, SerializationFormatting)Serialize<T>(Serializer, T, Utf8JsonWriter, MemoryStreamFactory, SerializationFormatting)Serialize<T>(Serializer, T, Utf8JsonWriter, SerializationFormatting)SerializeToBytes(Serializer, Object, Type, MemoryStreamFactory, SerializationFormatting)SerializeToBytes(Serializer, Object, Type, SerializationFormatting)SerializeToString(Serializer, Object, Type, MemoryStreamFactory, SerializationFormatting)SerializeToString(Serializer, Object, Type, SerializationFormatting)SerializeToBytes<T>(Serializer, T, MemoryStreamFactory, SerializationFormatting)SerializeToString<T>(Serializer, T, MemoryStreamFactory, SerializationFormatting)Full Changelog: https://github.com/elastic/elasticsearch-net/compare/8.15.9...8.15.10
Move away from shared project by @Mpdreamz in https://github.com/elastic/elasticsearch-net/pull/8376
DateTimeOffset to the known types for ObjectToInferredTypesConverter by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8380WithAlias extensions for CreateIndexRequestDescriptor by @stevejgordon in https://github.com/elastic/elasticsearch-net/pull/8373Full Changelog: https://github.com/elastic/elasticsearch-net/compare/8.15.8...8.15.9
Regenerate client using the latest specification by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8369
TrainedModel state enums (thanks @svalbuena)Full Changelog: https://github.com/elastic/elasticsearch-net/compare/8.15.7...8.15.8
Fix (de-)serialization of Fields in custom converters by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8360
Fields in custom converters by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8360DictionaryResponse.Values by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8361
DictionaryResponse.BackingDictionary field to allow using the results of e.g. Indices.GetSettings or Snapshot.GetRepository.DefaultFieldNameInferrer and JsonSerializerOptions.PropertyNamingPolicy by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8362
DefaultFieldNameInferrer to use JsonSerializerOptions.PropertyNamingPolicy, if the DefaultSourceSerializer is used.DefaultSourceSerializer is used and the DefaultFieldNameInferrer is changed, the JsonSerializerOptions.PropertyNamingPolicy gets configured to use a custom PropertyNamingPolicy that applies the DefaultFieldNameInferrer transformations.Full Changelog: https://github.com/elastic/elasticsearch-net/compare/8.15.6...8.15.7
Fix Slices url parameter serialization by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8327
Slices url parameter serialization by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8327SourceConfigParam url parameter serialization by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8328Full Changelog: https://github.com/elastic/elasticsearch-net/compare/8.15.5...8.15.6
Regenerate client using the latest specification by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8324
HtmlStripProcessor and UriPartsProcessorFull Changelog: https://github.com/elastic/elasticsearch-net/compare/8.15.4...8.15.5
Regenerate client using the latest specification by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8319
Full Changelog: https://github.com/elastic/elasticsearch-net/compare/8.15.3...8.15.4
Regenerate client using the latest specification by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8312
Security APIs by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8315
Full Changelog: https://github.com/elastic/elasticsearch-net/compare/8.15.2...8.15.3
Do not check product status for non-success responses by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8306
Full Changelog: https://github.com/elastic/elasticsearch-net/compare/8.15.1...8.15.2
Fix race condition in product check by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8296
CustomFormatterFull Changelog: https://github.com/elastic/elasticsearch-net/compare/8.15.0...8.15.1
Implement Esql.QueryAsStreamAsync helper by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8283
Esql.QueryAsStreamAsync helper by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8283
MlTrainedModelInferenceStats and MlTrainedModelDeploymentStats (thank you @svalbuena)Full Changelog: https://github.com/elastic/elasticsearch-net/compare/8.14.8...8.15.0
This _could_ be a breaking change, if strict mapping is enabled. Use the [JsonPropertyName("name")] attribute on any property to override its name.
ToCamelCase to match STJ behavior by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8278
DefaultFieldNameInferrer behavior to produce the same names as the JsonNamingPolicy.CamelCase naming policy[JsonPropertyName("name")] attribute on any property to override its name.Full Changelog: https://github.com/elastic/elasticsearch-net/compare/8.14.7...8.14.8
Script is no longer an union and instead combines the properties of InlineScript and StoredScriptId (breaking change!)
GeoShapeQueryShapeQueryScript is no longer an union and instead combines the properties of InlineScript and StoredScriptId (breaking change!)Script is no longer an union and instead combines the properties of InlineScript and StoredScriptId.
All places that use InlineScript or StoredScriptId must be changed from e.g. .InlineScript(new InlineScript(...)) to .Script(new Script(...)). Construction of the union like e.g. new Script(new InlineScript(...)) or new Script(storedScriptId) is no longer required and should be replaced by just new Script(...).
Full Changelog: https://github.com/elastic/elasticsearch-net/compare/8.14.6...8.14.7
Fixes a DoS vulnerability in the transient System.Text.Json dependency
Elastic.Transport to 0.4.20 by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8261
System.Text.Json dependencyFull Changelog: https://github.com/elastic/elasticsearch-net/compare/8.14.5...8.14.6
Implement common request query parameters for request descriptors by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8257
filter_path, human and pretty in the fluent API (descriptor-style) syntaxFull Changelog: https://github.com/elastic/elasticsearch-net/compare/8.14.4...8.14.5
Generate untagged variants by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8249
Full Changelog: https://github.com/elastic/elasticsearch-net/compare/8.14.3...8.14.4
RangeQuery is no longer a union. Usage changes from:
var response = await client.SearchAsync<Person>(q => q.Query(q => q.Range(new RangeQuery(new NumberRangeQuery("age"!))
{
Gt = 42
})));
to:
var response = await client.SearchAsync<Person>(q => q.Query(q => q.Range(new NumberRangeQuery("age"!)
{
Gt = 42
})));
or alternatively using a full descriptor based syntax:
await client.SearchAsync<Person>(q => q.Query(q => q.Range(r => r.NumberRange(n => n.Field("age"!).Gte(42)))));
The built-in range query types are: NumberRangeQuery, DateRangeQuery and TermRangeQuery. For an untyped version that accepts all object types, you can additionally use UntypedRangeQuery.
Regenerate client using the latest spec by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8245
DynamicTemplateFull Changelog: https://github.com/elastic/elasticsearch-net/compare/8.14.2...8.14.3
Regenerate client using the latest spec by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8234
InferTrainedModel endpointIndexSettingsFull Changelog: https://github.com/elastic/elasticsearch-net/compare/8.14.1...8.14.2
Add missing Field property to IntervalsQuery by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8229
Field property to IntervalsQuery by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8229Full Changelog: https://github.com/elastic/elasticsearch-net/compare/8.14.0...8.14.1
Regenerate client for 8.14 by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8219
Esql.QueryAsObjects high level API by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8214Full Changelog: https://github.com/elastic/elasticsearch-net/compare/8.13.15...8.14.0
Change mapping limit type from int -> long by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8209
int -> long by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8209Full Changelog: https://github.com/elastic/elasticsearch-net/compare/8.13.14...8.13.15
Fix type of settings in PutTemplate to provide much easier access to the individual settings
settings in PutTemplate to provide much easier access to the individual settingsAnalysis.INormalizer variantsFull Changelog: https://github.com/elastic/elasticsearch-net/compare/8.13.13...8.13.14
Fix value request serialization by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8201
Full Changelog: https://github.com/elastic/elasticsearch-net/compare/8.13.12...8.13.13
Fix MultiSearch functionality by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8176
MultiSearch functionality by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8176
IStreamSerializable for array request descriptorsFull Changelog: https://github.com/elastic/elasticsearch-net/compare/8.13.11...8.13.12
Fix index inference for requests with index/indices parameter by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8170
index/indices parameter by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8170Full Changelog: https://github.com/elastic/elasticsearch-net/compare/8.13.10...8.13.11
Fix BucketsPath (de-)serialization by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8164
BucketsPath (de-)serialization by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8164Full Changelog: https://github.com/elastic/elasticsearch-net/compare/8.13.9...8.13.10
Generate inference constructor overloads by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8153 and https://github.com/elastic/elastic
Field and Fields by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8156
Full Changelog: https://github.com/elastic/elasticsearch-net/compare/8.13.8...8.13.9
Implement extended_bounds and hard_bounds for {Date}HistogramAggregation by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8140
extended_bounds and hard_bounds for {Date}HistogramAggregation by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8140Full Changelog: https://github.com/elastic/elasticsearch-net/compare/8.13.7...8.13.8
Update Elastic.Transport dependency by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8134
Elastic.Transport dependency by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8134
Full Changelog: https://github.com/elastic/elasticsearch-net/compare/8.13.6...8.13.7
Generate exhaustive overloads for all request methods by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8123
Cluster.Stats endpointSynonymsSet to SynonymGraphTokenFilterFull Changelog: https://github.com/elastic/elasticsearch-net/compare/8.13.5...8.13.6
Fix serialization of OpType by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8105
OpType by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8105MultisearchBody/MultisearchHeader by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8107Full Changelog: https://github.com/elastic/elasticsearch-net/compare/8.13.4...8.13.5
Re-implement Exists property by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8102
Exists property by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8102Full Changelog: https://github.com/elastic/elasticsearch-net/compare/8.13.3...8.13.4
Improve serialization of "single-or-many" properties by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8090
Total value for search responses by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8095RangeQuery by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8098Full Changelog: https://github.com/elastic/elasticsearch-net/compare/8.13.2...8.13.3
Use Fields type for Field|Field[] and Field[] by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8084
Fields type for Field|Field[] and Field[] by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8084Full Changelog: https://github.com/elastic/elasticsearch-net/compare/8.13.1...8.13.2
Fix source (de-)serialization by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8076
Full Changelog: https://github.com/elastic/elasticsearch-net/compare/8.13.0...8.13.1
The support of these new functions is accompanied by some breaking changes. In the next section, we have been working to document all of these changes…
This version of the client is the first one generated by a completely revised code generator. In addition to more than 200 new endpoints, which were not yet supported in 8.12.1, 8.13.0 finally supports all aggregations and many other previously unavailable features.
The support of these new functions is accompanied by some breaking changes. In the next section, we have been working to document all of these changes and show the new usage with code examples. If you come across any undocumented changes, please feel free to open an issue
Although the most common endpoints have been tested by hand, there is a possibility that this version contains a few minor bugs. If you come across such a bug, please let us know. Over the next few weeks, we will closely monitor the issue tracker and respond quickly with appropriate patch releases.
The aggregation name and the sub-aggregations property was pulled out of the actual aggregation variant classes. The usage changes from:
var aggExampleResponse = await client.SearchAsync<StockData>(s => s
.Aggregations(aggs => aggs
.DateHistogram("by-month", dh => dh
.CalendarInterval(CalendarInterval.Month)
.Field(fld => fld.Date)
.Aggregations(subaggs => subaggs
.Sum("trade-volumes", sum => sum.Field(fld => fld.Volume))
)
)
)
);
to:
var aggExampleResponse = await client.SearchAsync<StockData>(s => s
.Aggregations(aggs => aggs
.Add("by-month", agg => agg
.DateHistogram(dh => dh
.CalendarInterval(CalendarInterval.Month)
.Field(fld => fld.Date)
)
.Aggregations(subaggs => subaggs
.Add("trade-volumes", agg => agg
.Sum(sum => sum.Field(fld => fld.Volume))
)
)
)
)
);
In the response, the sub-aggregations are no longer part of the bucket class itself, but must be accessed through the Aggregations property instead. Usage changes from:
var monthlyBuckets = aggExampleResponse.Aggregations?.GetDateHistogram("by-month")?.Buckets ?? Array.Empty<DateHistogramBucket>();
foreach (var monthlyBucket in monthlyBuckets)
{
var volume = monthlyBucket.GetSum("trade-volumes");
Console.WriteLine($"{monthlyBucket.Key} : {volume}");
}
to:
var monthlyBuckets = aggExampleResponse.Aggregations?.GetDateHistogram("by-month")?.Buckets ?? Array.Empty<DateHistogramBucket>();
foreach (var monthlyBucket in monthlyBuckets)
{
var volume = monthlyBucket.Aggregations.GetSum("trade-volumes");
Console.WriteLine($"{monthlyBucket.Key} : {volume}");
}
Please as well note, that it is no longer possible to compose a dictionary/list of aggregations using the && operator.
Query variants no longer derive from SearchQuery. This has some implications on usage. Instead of being able to e.g. use logical operators on query variants like this:
var myQuery = new TermQuery("field") { Value = "a" } || new TermQuery("field") { Value = "b" };
// => BoolQuery variant
you have to wrap the query into the container first:
var myQuery = Query.Term(new("field") { Value = "a" }) || Query.Term(new("field") { Value = "b" });
// => Query container that wraps a BoolQuery variant
This version deprecates all synchronous endpoint API methods in the ElasticsearchClient class (and namespaced versions).
Full Changelog: https://github.com/elastic/elasticsearch-net/compare/8.12.1...8.13.0
Update TargetFrameworks by @gpetrou in https://github.com/elastic/elasticsearch-net/pull/8052
Elastic.Transport dependency by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8059EsqlQueryResponse by @flobernd in https://github.com/elastic/elasticsearch-net/pull/8062FieldsFull Changelog: https://github.com/elastic/elasticsearch-net/compare/8.12.0...8.12.1
https://github.com/elastic/elasticsearch-net/compare/8.11.0...8.12.0
https://github.com/elastic/elasticsearch-net/compare/8.11.0...8.12.0
Fields instancesOne column per quarter.