Skip to content

Unable to update Null as a value to a existing property in case of update #5152

@prasher-ayce

Description

@prasher-ayce

NEST/Elasticsearch.Net version: NEST 7.10

Elasticsearch version: 7.8.0

Description of the problem including expected versus actual behavior: I am trying to update Null values in a Nullable Datetime field but couldn't able to, Serializer seems to ignore Nulls.
**Things i have tried so far : **

  1. inject a custom serializer which includes NULL getting an exception : "Could not load type 'Nest.CartesianPoint' from assembly 'Nest, Version=7.0.0.0";
  2. Tried Null value attribute (I am using attribute mapping) turns out i am not able to set a NullValue for Nullable Date time.
  3. manually updated mapping in Elastic search using kibana and set a Min Value. No success either
    A clear and concise description of what the bug is.

Steps to reproduce:

  1. Create a partial model with some Nullable date fields.
  2. Insert values with date fields containing values.
  3. Try to update a null next time on those date fields which were set in Step 1.
  4. Couldnt able to Set NullValue in attribute mapping for Nullable date field

Expected behavior
A clear and concise description of what you expected to happen.
I want to update Null value in datefields

Provide ConnectionSettings (if relevant):

Provide DebugInformation (if relevant):

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions