Reputation: 11638
Looks like NEST2 INestSerializer has been removed but I can't find the substitute for it in the current source code.
The breaking changes page lists it under the removed classes
What's the new class to use?
Upvotes: 1
Views: 106
Reputation: 125518
The equivalent in Nest 2.x is IElasticsearchSerializer
with the default implementation being JsonNetSerializer
, a json serializer that uses Json.Net under the covers.
In cases where you want to add Contract Converters (for custom type serialization/deserialization) or to define custom property mapping (outside of using attributes, automapping, fluent mapping or mapping visitor), then you'll probably want to derive from JsonNetSerializer
.
Upvotes: 1