[Obsolete()] and make sure they are still relevant. @codebrain [Obsolete()] where they make sense. @codebrain NEST.Json.Net package is part of the build.NEST prefix on NugetConnectionSettings6.x branchWe are looking to migrate our cluster to 6.0.
Will the latest stable NEST work against 6.0? Or would it be safer to wait for NEST 6? Are there any rough timelines?
Hey @andrewrimmer, the latest stable NEST 5.x on nuget is not tested or supported with 6.0. The 6.0.0-alpha1 package was tested against 6.0.0-alpha1 Elasticsearch, however, there have been quite a few changes in Elasticsearch since that release.
We're working on the 6.0.0 release of the client as the highest priority right now, and expect to GA release hopefully this week or next, so long as we don't find any showstoppers! In the meantime and if you're eager to get going with NEST 6.x, we have the canary releases on MyGet, which will contain the latest from master (they start from 6.1.0-<prerelease> as canary always assumes it's the next minor).
Thanks @russcam.
I have given 6.1 a try but when I do a basic index operation I get "ProtocolViolationException: When performing a write operation with AllowWriteStreamBuffering set to false, you must either set ContentLength to a non-negative number or set SendChunked to true.". Should I be reporting this as an issue or is this just part and parcel of using the pre-release canary release?
Please report as a bug @kbandrew, relates to #2891. Does this happen on all requests?
@russcam this happens on all requests and is using a brand new installation of Elasticsearch 6 and a hello world index & search example. Swapping out NEST 6.1 with the latest 5.5 stable release makes it work without any code changes.
I will create an issue for it.
Thank you @kbandrew; I'll fix it today 馃憤
Smart. I will keep an eye out for the next canary release and will re-test.
Any news on this?
What is the current expected GA/RC release date? We would like to plan the migration to ES 6.
Hey @neotek, we are looking to publish a 6.0.0-beta1 to nuget shortly. This beta is very near to what we anticipate the GA release will be, but we wuld like to publish it to nuget in order to garner wider feedback. We do also publish CI canary releases to MyGet if you're keen to get your hands on the bleeding edge.
Hey @russcam, thanks. We then try as soon as the beta1 is released.
I'd like to have clarification on Removal of mapping types. While the documentation on the ElasticSearch side is clear, it's unclear for NEST.
Specifically, when calling .Map<Foo>(...).Map<Bar>(...), it returns the correct obsolete information. However, it's unclear (a) how to auto-map multiple types into a single index, (b) how to work with joins since parent/child is also obsolete.
(If you have something short-term, that'd be great as well.)
Hi @thoean
we've written a how to on the new join data type and how to use it from NEST here:
https://www.elastic.co/guide/en/elasticsearch/client/net-api/master/parent-child-relationships.html
Hope that explains both (a) and (b)
@Mpdreamz , that's what I was looking for. The [Obsolete] message could contain something like use InferMappingFor instead of multiple Map statements. (I know, this isn't technically correct since there are multiple ways on how to create the mapping. I'm mainly highlighting that there are opportunities to discover the solution for how to do mapping correctly.)
Thanks for the feedback @thoean 馃憤 We will also be putting out a blog post and adding additional documentation including breaking changes once 6.x is GA, to help explain how to transition from a previous version of NEST to 6.x
Should methods Nest.TypeMappingDescriptor<T>.Analyzer and Nest.TypeMappingDescriptor<T>.SearchAnalyzer be removed? The ObsoleteAttribute say they are scheduled to be removed in 6.0. Also I think this feature was removed in ES 2 (https://www.elastic.co/guide/en/elasticsearch/reference/2.0/breaking_20_mapping_changes.html#_analyzer_mappings)
The obsoletes that we currently have are for default analyzer settings at the type level for mapping that have been been removed.
Which indeed have been removed
The index_analyzer, search_analyzer, and analyzer type-level settings have also been removed, as it is no longer possible to select fields based on the type name.
We kept them around in 5.x as they could still be returned from 2.x indices to aid migration.
We will remove this from our 6.0 GA releases, doing a final Obsolete removal is still part of this GA checklist.
Thanks for raising this @Minx-SigEp if you see others please feel free to raise them here again.
Thanks @Minx-SigEp - PR open with code to be removed in NEST 6:
https://github.com/elastic/elasticsearch-net/pull/3067
The GA release is up on NuGet
6.x branch, still needs to wait for that internally to be merged and published).I've added 6.x and the breaking changes for it to the docs. I think we can improve the layout of the asciidoc breaking changes to make them clearer. Going to look at this
@ghavaun it's not clear what you're asking to fix. If there's an issue, please open a new issue and describe what it is.