NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
NuGet, #336 most downloaded on NuGet
Strongly typed interface to Elasticsearch. Fluent and classic object initializer mappings of requests and responses. Uses and exposes Elasticsearch.Net.
Latest stable
7.17.5
Last release 4 years ago
no release in 18 months
Ships fairly regularly
a new release about every 5 weeks
Nearly every release is documented
notes for 60 of the last 60 stable releases
21 versions withdrawn
withdrawn after publishing
127 years old
197 releases · first in 1900
Drag across the ruler to compare, or tap a release to open it.
https://github.com/elastic/elasticsearch-net/compare/6.5.0...6.5.1
https://github.com/elastic/elasticsearch-net/compare/6.5.0...6.5.1
SniffingConnectionPool fails to make any request due to SniffResponse deserialization failureVoidResponse should not be sharedhttps://github.com/elastic/elasticsearch-net/compare/6.4.2...6.5.0
https://github.com/elastic/elasticsearch-net/compare/6.4.2...6.5.0
::Your coding agent can read these notes before it upgrades. Set up the MCP server →
Unfortunately, these were added in a binary breaking change, and slipped through into the 6.4.1 release. One of the core tenets of the client is to ma…
https://github.com/elastic/elasticsearch-net/compare/6.4.1...6.4.2
#3543 Include format in Field, Fields, Infer.Field FieldsDescriptor in a backwards binary compatible way
6.4.1 introduced an additional string format property to the constructors of Field, Fields, Infer.Field and FieldsDescriptor. Unfortunately, these were added in a binary breaking change, and slipped through into the 6.4.1 release. One of the core tenets of the client is to maintain binary compatibility across a major version of the client.
6.4.2 introduces format in a binary backward compatible way, fixing the issue with 6.4.1. The 6.4.1 package has been unlisted in nuget, and we recommend upgrading to the latest version of the client as soon as possible.
https://github.com/elastic/elasticsearch-net/compare/6.4.0...6.4.1
https://github.com/elastic/elasticsearch-net/compare/6.4.0...6.4.1
The rest of the commits are all related to housekeeping, moving FAKE build tasks to dedicated dotnet tools
https://github.com/elastic/elasticsearch-net/compare/6.3.1...6.4.0
https://github.com/elastic/elasticsearch-net/compare/6.3.1...6.4.0
https://github.com/elastic/elasticsearch-net/compare/6.3.0...6.3.1
https://github.com/elastic/elasticsearch-net/compare/6.3.0...6.3.1
JsonNetSerializerhttps://github.com/elastic/elasticsearch-net/compare/6.2.0...6.3.0
https://github.com/elastic/elasticsearch-net/compare/6.2.0...6.3.0
This release brings feature parity with Elasticsearch 6.3.0. Support for the Roll Up API is not part of this release and will be forthcoming in 6.4.0 releases of the .NET clients.
This release also changes our supported TFM from net45 and netstandard1.3 to net461 and netstandard2.0.
netstandard2.0 will produce a cleaner dependency graph and we bumped to net461 as the new baseline for Full Framework so that we can reuse almost all the code between the two TFM's. The only difference between the two TFM's is that net461 uses an HttpConnection built on top of HttpWebRequest and netstandard2.0 builds on top of HttpClient. HttpWebRequest exists on .NET core 2.0 but should not be used.
For 6.4.0 we are investigating supporting a netcoreapp2.1 TFM which can take advantage of the new managed handler for HttpClient and will be looking to move our HttpClient based connection over to HttpClientFactory. Our implementation does much of the same HttpClientFactory does but why maintain if we can depend on something else. With these plans we felt the need to bump net45 to net461 to restrain our multi-platform support. We feel that most greenfield projects should be on net461 and later and the upgrade from net45 to net461 on servers is fully backwards compatible. Please let us know if you are in a situation where you are not able to upgrade.
Comparison of https://github.com/elastic/elasticsearch-net/compare/6.2.0...6.3.0
allow_partial_search_results search request parameter## Features & Enhancements - #3279 6.x Performance Improvements - #3277 Associate an external id with a task, so that it can be cancelled later. - #32
jarowinkler in favor of jaro_winklerlevenstein in favor of levensHteinwait_for_no_initializing_shards to cluster health APIhttps://github.com/elastic/elasticsearch-net/compare/6.0.2...6.1.0
https://github.com/elastic/elasticsearch-net/compare/6.0.2...6.1.0
ip_range range datatypeauto_generate_synonyms_phrase_query parametermax_token_length to Whitespace tokenizerwait_for_active_shards parameter to index open commandignore_malformed to geo_shape fieldmax_size to Rollover API conditionsReIndexOnServerPhoneticEncodernested sort and deprecate nested_path and nested_filtertext fieldsFields to be optional on MultiMatchQueryignore_unmapped to inner_hitsskip_duplicates to Completion Suggesternested sort and deprecate nested_path and nested_filterIndicesBoost as array instead of object, allowing ordered precedence to boosting.IgnoreUnmapped on IGeoShapeIGeoShape types on documentsIndexed property to GenericProperty to support correct index optionsserver_side_encryption to s3 repository settingsJsonConverters added to JsonSerializerSettingsVisit() methods to IPropertyVisitor and IMappingVisitior for range data typesDecision enumhttps://github.com/elastic/elasticsearch-net/compare/6.0.1...6.0.2
https://github.com/elastic/elasticsearch-net/compare/6.0.1...6.0.2
This release bumps the JSON.NET dependency of NEST.JsonNetSerializer to 11.x (#3115)
Additional bug fixes:
It is recommended to update to 6.0.1 due to #3084.
It is recommended to update to 6.0.1 due to #3084.
Dictionary<string,object>Also check out 5.x -> 6.x breaking changes
A huge thank you to the community who kicked the tires on the 6.0 prereleases that we've been putting out and providing invaluable feedback 🖖
Check out the blog post on the NEST 6.0 release that highlights some of the main features within this major release.
Also check out 5.x -> 6.x breaking changes
BulkAll pluggableServerErrorexplain on Analyze APIphrase_limit for FVH highlighting"missing" fieldextended_bounds type on Date Histogram aggregations. Thanks @FabienLavocat 👍shard_min_doc_count parameter on Significant Terms Aggregation.params property to phrase_suggest_collate.The second release of the Elastic .NET packages, to address issues found by customers in the 6.0.0-beta1 release.
The second release of the Elastic .NET packages, to address issues found by customers in the 6.0.0-beta1 release.
These packages are designed to be used in conjunction with Elasticsearch 6.x
{dynamic_type} as part of the mappingtype on has_parent query should be parent_typeThe breaking changes for Elasticsearch 5.x to 6.x are documented here and tracked here.
These beta packages have been released in order to solicit feedback from users. Like any beta software it should not be used in a production environment, if you do so it is very much at your own risk and we will be unable to support you.
These packages are designed to be used in conjunction with Elasticsearch 6.x
We are, however, very keen to field any issues that you may have. If you come across a problem please open an issue. Please ensure your issue mentions the 6.0.0-beta1 label.
The Newtonsoft.Json nuget dependency has been removed and the assembly has now been IL merged into the NEST assembly.
The reasons for this are two-fold:
The Json.NET library has been completely internalized. All methods, properties, classes (etc) have been rewritten into the NEST assembly with internal scope and namespaces moved over to NEST.Json. It should not be possible to access any of the serialization functionality and it should coexist with Newtonsoft.Json references in your project.
The new NEST.JsonNetSerializer package enables you to write a custom serialization path for the types you index into Elasticsearch using Json.NET.
This creates a new extension point within NEST for the serialization of your types.
It is now only possible to have a single type per index, this change is more heavily documented here.
If you have multiple types in an index you'll need to move to a single type per index solution. If you can not do that straight away you can opt in to multiple types, for the time being, by using mapping.single_type index settings.
new IndexSettings(new Dictionary<string, object> {
{ "mapping.single_type", "false" }
})
{
NumberOfShards = 2,
NumberOfReplicas = 0,
};
The breaking changes for Elasticsearch 5.x to 6.x are documented here and tracked here.
This marks our first release completely integration tested against Elasticsearch 6.0.0-alpha1.
This marks our first release completely integration tested against Elasticsearch 6.0.0-alpha1.
No big changes from 5.4.0 with the notable exception of
If you have multiple types in a single index you'll need to move to a 1 type per index solution. If you can not do that straight away you can opt in to multiple types for the time being by using mapping.single_type index settings. For instance alpha1 does not come yet with an updated story for parent/child documents mandatory having to live in the same index.
new IndexSettings(new Dictionary<string, object> {
{ "mapping.single_type", "false" }
})
{
NumberOfShards = 2,
NumberOfReplicas = 0,
};
https://github.com/elastic/elasticsearch-net/compare/5.6.5...5.6.6
https://github.com/elastic/elasticsearch-net/compare/5.6.5...5.6.6
SniffingConnectionPool fails to make any request due to SniffResponse deserialization failureVoidResponse should not be sharedhttps://github.com/elastic/elasticsearch-net/compare/5.6.4...5.6.5
https://github.com/elastic/elasticsearch-net/compare/5.6.4...5.6.5
The rest of the commits all relate to housekeeping moving FAKE targets to dedicated dotnet tools.
https://github.com/elastic/elasticsearch-net/compare/5.6.3...5.6.4
https://github.com/elastic/elasticsearch-net/compare/5.6.3...5.6.4
## Features & Enhancements - #3288 Add _source to ReindexOnServer API source settings - #3293 Add _ScriptedUpsert to BulkUpdateOperation - #3292 Add D
https://github.com/elastic/elasticsearch-net/compare/5.6.1...5.6.2
https://github.com/elastic/elasticsearch-net/compare/5.6.1...5.6.2
ip_range range datatype in Elasticsearch 5.5.0+PhoneticEncoderIGeoShape types on documentsIndexed property to GenericProperty to support correct index optionsserver_side_encryption to s3 repository settingsVisit() methods to IPropertyVisitor and IMappingVisitior for range data typeshttps://github.com/elastic/elasticsearch-net/compare/5.6.0...5.6.1
https://github.com/elastic/elasticsearch-net/compare/5.6.0...5.6.1
This release bumps the JSON.NET dependency of NEST to 11.x (#3115)
Features:
Additional bug fixes:
This is a large update to the 5.x version of the client! The REST API specs that are used to generate large parts of the client have been updated to 5
This is a large update to the 5.x version of the client! The REST API specs that are used to generate large parts of the client have been updated to 5.6.5.
This release includes all 32 of the Machine Learning APIs available within X-Pack 🤖 📈
SerialDifferencing() to the .Aggs aggregation helper on ISearchResponse<T>shard_min_doc_count parameter for Significant Terms Aggregationsigma property on ExtendedStatsAggregationHttpClientHandler.UseProxy=false to disable automatic proxy detection. thanks @codeh 👍MissingValue property. Deprecate Missing with ObsoleteAttribute and fix in 6.x.TopHitsAggregationTopHitsAggregationTime within the client, including fractional unitsExtendedBoundsDateMath property of type ExtendedBounds<DateMath>Params on ITemplateQuery, but copy Params over if used.date_optional_time to Format when Missing is specifiedMultiGetResponse itemsDFISimilarityPingTimeout for the request timeout. thanks @vaibhav1192 👍Verbatim where the terms is an empty collection, serialize to an empty arrayAzureRepository so that GetRepository does not throw{dynamic_type} as part of the mapping using .Generic()IHistogramAggregation. thanks @jeroenkoknl 👍.Sort() on fluent lambda API of Top Hits aggregation that allows only field sorting.## Features & Enhancements - #2775 Add remove_index operation to Alias operations. - #2795 Add missing fields on simple_query_string query. - #2807 Ad
remove_index operation to Alias operations.simple_query_string query.role_mapping API to map roles to users, and a token based access API.matrix_stats, sig_terms and sampler_agg have additional properties.StickySniffingConnectionPool - a new connection pool that combines the capabilities of the StickyConnectionPool and SniffingConnectionPools, and allowing for the sorting of the Node collection to be defined externally.MoveNext().Reindex() produces just enough documents for a single bulk but leaves no slots to call MoveNext() which would free up an awaiting task (fixes #2771).GetAlias now return a 404 if you submit a query for e.g a,b,c and only alias a was found (as per: elastic/elasticsearch#25043).LazyDocument to T.CancellationTokenRegistration is disposed of correctly.EnterReadLock() outside of try block for SniffingConnectionPool.RefreshRequest fields force and operation_threading have been removed from ES 5.x (as per: elastic/elasticsearch#25234) so have been patched in as noop to preserve binary compatibility. Will be removed in 6.0.Highlights: Elasticsearch 5.4 feature parity, we are now rolling with the new new csproj files for our builds.
Highlights: Elasticsearch 5.4 feature parity, we are now rolling with the new new csproj files for our builds.
stored_fields support to top hits aggregations (ty @V1tOr !)time_zone in the date range aggregations (ty @adam-mccoy !)num_reduce_phases on search (see elastic/elasticsearch#23288)show_term_document_count_error which went blatently missing in 5.xCentOS, does not allow maxconnections to be set.For 6.0 we will rely on a new feauture in elasticsearch called typed_keys which will return aggregation names prefixed with type# which will completely replace the current heuristics based parser which should make parsing bugs less likely to creep in. (Although the current one has held up OK since 2.x).
Bump from Newtonsoft.Json 9.0.1 to 10.0.1 (Nuget bound to 10.0.x and up)
Bump from Newtonsoft.Json 9.0.1 to 10.0.1 (Nuget bound to 10.0.x and up)
https://github.com/elastic/elasticsearch-net/pull/2715
## Features & Enhancements - #2647 Major improvements for working with server and client certificates! - #2619 Added ability to filter nodes from snif
NodePredicate on IConnectionPoolAutoMap() will now map overridden/hidden propertiesposition_lengthBulkAll (TY @sergii-sakharov !)include and exclude options of the terms and significant_terms aggregationsAnalyzeToken and deprecate misspelt EndPostioninclude_in_all mapping propertyFixed caching of mapping properties when running on Core CLR
NotExecutedAlreadyQueued in ActionExecutionStatejson processorignore_missing on the user_agent, geo_ip, and attachment processorsuser_agent processor pluginsynonym_graph token filteranalysis_icu plugin is now supported out of the boxkuromoji analysis pluginFields convenience overloadsEnableDebugMode() to ConnectionSettings as a quick way to disable direct streaming and pretty print JSON responses to the debug output window. It also accepts an optional callback to perform when the request completes.MissingMethodException when setting ConnectionLimit on Xamarin.DroidMissing option on terms aggregation so that it can correctly be serialized to its field typeAutoMap() now correctly respects ignored and renamed properties on ConnectionSettingsTime did not support microseconds and nanoseconds properlyReindexOnServer() was missing the remote option_count with no body sending a POST instead of GET 🔢Suggest() is now deprecated in favor of suggest through _search## Enhancements - #2532 Support geometrycollection for geo_shape types and queries 🌐 - #2521 Improve DebugInformation with a string representation of
geometrycollection for geo_shape types and queries 🌐CausedBy (ty @kirilyuro )DateTime allocations (ty @niemyjski )TermVector for TextPropertyTermsIncludeExclude to allow search requests that include it to be deserialized…as well as take a look at the 2.x -> 5.x Breaking Changes for NEST and Breaking Changes for Elasticsearch.Net.
A huge thank you to the community who kicked the tires on the 5.0 prereleases that we've been putting out since April and provided us with invaluable feedback 🖖
Check out the blog post on the NEST 5.0 release that highlights some of the main features as well as take a look at the 2.x -> 5.x Breaking Changes for NEST and Breaking Changes for Elasticsearch.Net.
CreateRequest<T>. This can be used to create a document of a given type in a given index with a given id, with optimistic concurrency control. See https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html#operation-type for more detailsScrollAll() helper method#2473 Limit the number of concurrent connections on .NET Core, similar to Desktop CLR.
#2457 Use IndexName and TypeName types for Bulk*Many requests
#2459 Add type to set index auto expand replica setting
#2450 Add metadata for Security roles
#2462 ReindexAll() improvements
ReindexAll() is now composed over the IObservables from ScrollAll() and BulkAll(), taking advantage of the concurrency models in each.
Since the rate at which the scrolls produces far exceeds the rate at which we can consume them through bulks ReindexAll() also implements a producer/consumer rate limiter. This is controlled by a backPressureFactor which controls the max amplification factor of running scrolls with the safe guard of:
searchSize * maxConcurrency * backPressureFactor >= bulkSize
#2451 Small Performance improvements
Introduce a BufferSize property on JsonNetSerializer with a default size of 1024 to use when writing json to the request stream. Performance tests as part of #1899 indicate this to be a good compromise buffer size for performance throughput and bytes allocated.
#2480 Allow target document type to be different from source document type when performing reindex
"value_as_string" for metric aggregations that return itAttachment type from _source or field dataStringEnumConverter to StringFielddataFormat to always serialize as string. Introduce coding standard unit test to assert the converter is applied to all NEST enumspublish_address when sniffing cluster state&= in the bool query DSLNotSupportedException consistent across all internal JsonConverter types.do not change, the same HttpClient instance will be used
Reindex() helper to reindex into an existing indexQueryContainerDescriptor<T> unneccessarilyUpdateMany() in the bulk APIenum to string resolutionDisableDirectStreaming() on a per request basisstring.#2431 Add include_in_all onto TypeMapping
#2420 Fix the way in which HttpClient are created when using the HttpConnection on .NET Core. A HttpClient was created based on a hashcode of RequestData that included a regression bug that caused multiple instances of HttpClient to be created. Now, for RequestData where
do not change, the same HttpClient instance will be used
#2428 Add specific type for term vectors in MutliTermVectorsResponse instead of reusing TermVectorsResponse
#2422 Use ScriptProcessorDescriptor in the fluent API of ingest node
#2440 Ensure that each part of the async pipeline for Desktop CLR HttpConnection can be cancelled correctly
UnexpectedElasticsearchClientException e.g. ResolveException that can happen within the transport when serializing to json.A recent change did not handle a number of dictionary serialization cases including
A recent change did not handle a number of dictionary serialization cases including
types that implement IReadOnlyDictionary<TKey,TValue>
e.g. public class MyReadOnlyDictionary<TKey,TValue> : IReadOnlyDictionary<TKey,TValue>
types that implement IDictionary<TKey, TValue>
e.g. public class MyDictionary<TKey,TValue> : IDictionary<TKey,TValue>
non-generic types that inherit a closed generic dictionary type
e.g. public class MyDictionary : Dictionary<string,object>
types that implement IDictionary that are not generic
e.g. public class MyNonGenericDictionary : IDictionary
This is the 2nd release candidate compatible with Elasticsearch 5.0. Many features and fixes went into this release, including support for all the Wat
This is the 2nd release candidate compatible with Elasticsearch 5.0. Many features and fixes went into this release, including support for all the Watcher APIs.
We will be finalizing the client ready for a GA release.
BulkAllsearch_afterT in Suggest<T>()IReadOnlyCollection<T> and IReadOnlyDictionary<TKey, TValue>. Additionally, all collections should be initialized.ignore_above to 256 on the keyword sub field, in line with dynamic mapping in ElasticsearchSuffixExpressionVisitor to allow multiple calls of .AppendSuffix()max_boundary_scan to highlight fields.Dynamic() mappingGet<T>() and Delete<T>() (and async variants) now return .IsValid as true and deserialize the response, setting .Found..Score is nullable on Hit<T>Language on UpdateRequest and rename to Lang, and correct script serializationIDictionary from IIsADictionary<TKey,TValue> interface definition. This was confusing and needed only for one purpose in the codebase. This has been refactored to perform better.This is the Elasticsearch 5.0.0-rc1 compatible release.
This is the Elasticsearch 5.0.0-rc1 compatible release.
#2322 Mappings: Added support for half_float and scaled_float numeric datatypes
#2337 Updated datatype properties to align with ES 5.0 across the board
#2320 Added ability to supply local metadata to mapping properties TY @ejsmith
#2292 Allow implicit conversion from string[] to Types and Indices
#2209 Several improvements in some Query DSL edge cases
#2339 SniffingConnectionPool: Fixed response parsing of _nodes when sniffing cluster state
#2319 Fixed caching of field expressions that contained both variables and constants
#2310 ReindexOnServer: Correctly handle 400 responses
#2308 Fixed deserialization of responses that contain took, which was incorrectly typed to int. TY @maeserichar !
#2295 XML doc fix. TY @niemyjski !
#2242 #2269 Enhancements to serialization of DateTime
#2195 Query on PhraseSuggestCollate is now correctly typed to ITemplateQuery
#2297 Removed deprecated MissingQuery
#2293 Removed deprecated IndexName
This is the Elasticsearch 5.0.0-beta1 compatible release.
This is the Elasticsearch 5.0.0-beta1 compatible release.
#2233 Support for get task API
#2228 Support for multi search template API
#2228 Support for shrink index API
#2226 Support for rollover index API
#2246 Support for disable/enable user APIs of the X-Pack security plugin
#2241 Support for field_masking_span query (TY @yevhen!)
#2198 HttpClientHandler can now be modified in a custom HttpConnection when running on .NET Core. This makes it possible to validate HTTPS certs by setting ServerCertificateValidationCallback.
#2197 & #2247 Introduced an improved approach to ModifyJsonSerializerSettings for overriding Json.Net serialization settings using ISerializerFactory instead (TY @jonyadamit !)
#2274 Fix NRE when deserializing a mutli-bucket aggregate with an empty buckets object
#2261 Add missing routing option to FieldLookup
#2209 & #2209 Several improvements in some edgecase query DSL scenarios
#2221 Fixed issue with using a sniffing connection pool where a thread could potentially become blocked resulting in a timeout exception (TY @lostllama)
#2219 Add missing conflicts option to reindex API
#2215 Add missing term vector filters
#2215 add missing metadata on IGetResponse<T> and IMultiHit<T>
#2169 Move analyze query string parameters to request body
#2194 Removed deprecated Alias on GetAliasRequest (use Name instead) and added back the GetAliasesPointingToIndex() helper method.
#2193 Add missing collate_match option to geo_shape queries (TY @HarveyWilliams !)
#2187 Add relation to geo_shape queries and contains to geo_shape relations
#2178 Add ability to specify a custom similarity using both the fluent and object iniitalizer syntax
This is the first 5.x release that uses the new .NET Core 1.0 RTM release in conjunction with the latest dotnet tooling (1.0.0-preview2-003121). Inclu
This is the first 5.x release that uses the new .NET Core 1.0 RTM release in conjunction with the latest dotnet tooling (1.0.0-preview2-003121). Included frameworks
net45)net46)netstandard1.3)The dependency on Json.NET in NEST has also been updated to major version 9.0.0
Massive thanks to @phenixdotnet for the initial PR to move the projects over from using dnx and .NET Core RC 1 dependencies :+1:
This release is targeted at Elasticsearch 5.0.0-alpha3
size to source when using the ReIndex APINothing published for this version
Nothing published for this version
https://github.com/elastic/elasticsearch-net/compare/2.5.7...2.5.8
https://github.com/elastic/elasticsearch-net/compare/2.5.7...2.5.8
This marks the final 2.x release for NEST and Elasticsearch.NET as Elasticsearch 2.4 EOL'ed 2018-02-28. We wont be doing any more 2.x releases unless something absolutely critical pops up.
To sunset our 2.x branch we have updated the JSON.NET dependency to the latest greatest 11 :cake:
Additional fixes:
# Features & Enhancements - #2886 Add ReadSingleOrEnumerableJsonConverter attribute to allow single common_words values to be deserialized - #2868 Add
ReadSingleOrEnumerableJsonConverter attribute to allow single common_words values to be deserializedHttpClientHandler.UseProxy=false on DisableAutomaticProxyDetection==true. thanks @codeh 👍sort missing valueDateMath for DateHistogram ExtendedBoundsshard_min_doc_count to Significant Terms Aggregationphrase_limit to highlightingParams to PhraseSuggestCollateAsciiFoldingTokenFilterConfigureAwait(false)AzureRepository constructorFixes a property cache that was using GetHashCode() on MemberInfo as key. This could lead to wrong properties being serialized when hashcode collision
Fixes a property cache that was using GetHashCode() on MemberInfo as key. This could lead to wrong properties being serialized when hashcode collisions occurred. This only affects 2.x.
Highlights: We are now rolling with the new new csproj files for our builds.
Highlights: We are now rolling with the new new csproj files for our builds.
fields support to top hits aggregations (ty @V1tOr !)CentOS, does not allow maxconnections to be set.Bump from Newtonsoft.Json 9.0.1 to 10.0.1 (Nuget bound to 10.0.x and up)
Bump from Newtonsoft.Json 9.0.1 to 10.0.1 (Nuget bound to 10.0.x and up)
https://github.com/elastic/elasticsearch-net/pull/2715
## Features & Enhancements - #2557 Analysis: Added support for the kuromoji analysis plugin - #2558 Analysis: analysis_icu plugin is now supported out
kuromoji analysis pluginanalysis_icu plugin is now supported out of the boxAutoMap() will now map overridden/hidden properties_count with no body sending a POST instead of GET 🔢AutoMap() now correctly respects ignored and renamed properties on ConnectionSettingsMissingMethodException when setting ConnectionLimit on Xamarin.DroidBulkAll (TY @sergii-sakharov !)include and exclude options of the terms and significant_terms aggregationsAnalyzeToken and deprecate misspelt EndPostionIsValid obsolete for Get and Delete responses to warn users about the behavioural change in #263718aa4dc149c48b5f72ffa14943b08797d104ceaa Limit version compatibility of NEST 2.x to 2.x versions of Elasticsearch.Net
.DisableDirectStreaming() on a per-request basis. This is useful when wishing to ad-hoc capture requests and responses.geometrycollection for geo_shape types and queries 🌐CausedBy (ty @kirilyuro )DateTime allocations (ty @niemyjski )TermsIncludeExclude to allow search requests that include it to be deserializedIntroduce a BufferSize property on JsonNetSerializer with a default size of 1024 to use when writing json to the request stream. Performance tests as
#2484 Limit the number of concurrent connections on .NET Core, similar to Desktop CLR.
#2451 Small Performance improvements
Introduce a BufferSize property on JsonNetSerializer with a default size of 1024 to use when writing json to the request stream. Performance tests as part of #1899 indicate this to be a good compromise buffer size for performance throughput and bytes allocated.
#2495 Add important admonition (end of Simple Automapping section) to the documentation about the use of System.Decimal types as C# POCO properties
"value_as_string" for metric aggregations that return itAttachment type from _source or field dataStringEnumConverter to StringFielddataFormat to always serialize as string. Introduce coding standard unit test to assert the converter is applied to all NEST enums&= in the bool query DSLSourceFiltering.Disable to be set to false. This is synonymous with the default, which is to return _source in the response.NotSupportedException consistent across all internal JsonConverter types.do not change, the same HttpClient instance will be used
Reindex() helper to reindex into an existing indexQueryContainerDescriptor<T> unneccessarilyUpdateMany() in the bulk APIenum to string resolutionMin NestedScoreMode#2431 Add include_in_all onto TypeMapping
#2420 Fix the way in which HttpClient are created when using the HttpConnection on .NET Core. A HttpClient was created based on a hashcode of RequestData that included a regression bug that caused multiple instances of HttpClient to be created. Now, for RequestData where
do not change, the same HttpClient instance will be used
#2142 Set the ApiCall details on each TermVectorsResponse in the collection of responses in a MultiTermVectorsResponse
#2440 Ensure that each part of the async pipeline for Desktop CLR HttpConnection can be cancelled correctly
when issuing a delete, if the delete actually deletes a document or the document to delete does not exist, .IsValid is true
Get<T>() and Delete<T>() (and async variants) now return .IsValid as true and deserialize the response, setting .Found. This aligns the behaviour of 2.x with 1.x and 5.x. The implications of this are:.IsValid is true.IsValid is true, .Found should also be checked to determine if the document existedBulkAll from #2162 and allow per document index operations on BulkAll.BulkAll is designed to parallelize bulk requests to Elasticsearch by iterating a lazily constructed collection of POCO types and partitioning into multiple concurrent bulk requests. It includes simple logic for automatic backoff of requests when documents failed to be indexed due to HTTP 429 response errors and retrying in a configurable number of times in such cases.
inner_hits on a nested typeT with Suggest<T>()ReindexOnServerResponse comes back as 400 status code, deserialize the response so that Failures is populated with more details for why things failed.max_boundary_scan to highlight fieldsSuffixExpressionVisitor to allow multiple calls of .AppendSuffix()Took field was incorrectly mapped as an int value on some responses, instead of long. Since the type cannot be changed (it would break binary compatibility), another field has been introduced, TookAsLong, that will hold the value returned from Elasticsearch; Took will also contain the value and for values greater than int, Took will be int.MaxValue. Took is marked with Obsolete attribute to highlight this to client consumers and Took is mapped as long in NEST 5.x. thanks @maeserichar 👍ObsoleteAttributeMissingQuery with ObsoleteAttribute as removed in 5.0IndexName on property mappings with ObsoleteAttribute as removed in 5.0` c# foreach (var hit in searchResponse.HitsMetaData.Hits) { foreach (var highlight in hit.Highlights) { // do something with highlightHit var highlig
ReindexRethrottle when running against Elasticsearch 2.4.0, to allow throttling of longer running tasks such as Reindex and UpdateByQuery APIs.field_masking_span queries. Mapped to SpanFieldMaskingQuery to align with names of other span queries.UpdateByQuery() fluent methods that infer Indices and Types from generic parameter type TJsonSerializerSettings without the need to implement a custom serializer. Thanks for the PR @jonyadamit 👍FieldLookup now includes a Routing property. ty @seanwmCustomSimilarity object or .Custom() fluent method on SimilaritiesDescriptorDateMath as it does not support fractional values. For example, TimeSpan.FromHours(25) will serialize to 25h as opposed to round to 1d or fractional value 1.04d. ty @emmekappa.Highlights on SearchResponse<T> as obsolete, to be removed in 5.x. It's a leaky abstraction when searching over multiple types that contain the same document id for different types - this will throw an exception. Highlights can be enumerated usingforeach (var hit in searchResponse.HitsMetaData.Hits)
{
foreach (var highlight in hit.Highlights)
{
// do something with highlightHit
var highlightHit = highlight.Value;
}
}
HighlightField now contains a CustomType string property that can be used to specify a custom highlighter. Core highlighters can still be specified using Type property.ElasticsearchPropertyAttributeBase and associated mapping methods allow the use of a custom similiarity through a CustomSimilarity string property (on attributes and mapping objects) and through the .Similairy(string) fluent mapping method. Core similarities can still be specified.NullReferenceException when deserializing a multi-bucket aggregation that contains an empty bucket.IsoDateTimeConverter to handle DateTimeOffset. Take a look at #2268 for how DateTime and DateTimeOffset are serialized within NEST.https://github.com/elastic/elasticsearch-net/commit/383623e4faab226f193e1e96dc00a2f24d0b529a Large performance improvements to MultiGet and MultiSearc
ConnectionSettings within your application for this reason.IUrlParameter.GetString() for IndexName and TypeNameThanks to @antonyfrancis for raising this :+1:
refresh on Index operation### Bug Fixes - #2197 Fixed instances where modified serialization settings or custom serializers were not being respected by introducing ISerializerF
ISerializerFactory. The old func based factory set on ConnectionSettings is now obsolete. (TY @tsliang and @mitchknife)HttpClientHandler can now be modified in a custom HttpConnection when running on .NET Core. This makes it possible to validate HTTPS certs by setting ServerCertificateValidationCallback.ITermVectorFilterIGetResponse<T> and IMultiHit<T>conflicts option to ReindexOnServer_source now properly serializes as false rather than exclude: ["*"] (TY @pathikdevani)GetAlias() in favour of Name### Bug Fixes - #2193 Add collate_match option to the phrase suggester response (TY @HarveyWilliams !) - #2187 Add relation and contains to geo_shape
collate_match option to the phrase suggester response (TY @HarveyWilliams !)relation and contains to geo_shape queriesos.cpu_precent to node stats response (TY @TheFireCookie !)### Bug Fixes #2173 Fixed UpdateByQuery from incorrectly reporting successful responses #2159 Deprecated misnamed Field() method on SuggestContextDesc
#2173 Fixed UpdateByQuery from incorrectly reporting successful responses
#2159 Deprecated misnamed Field() method on SuggestContextDescriptor in favor of Path()
#2150 Fixed gzip compression when running on .NET Core
#2152 ServerError on response now properly deserializes recursive error details
#2052 Fixed exception handling issues within SimpleJson
This is the second 2.x release (first available on nuget ) that uses the new .NET Core 1.0 RTM release in conjunction with the latest dotnet tooling (
This is the second 2.x release (first available on nuget :smile:) that uses the new .NET Core 1.0 RTM release in conjunction with the latest dotnet tooling (1.0.0-preview2-003121). Included frameworks
net45)net46)netstandard1.3)The dependency on Json.NET in NEST has also been updated to major version 9.0.0
Massive thanks to @phenixdotnet for the initial PR to move the projects over from using dnx and .NET Core RC 1 dependencies :+1:
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.