Empty string in Elasticsearch date field?

前端 未结 1 2318
遥遥无期
遥遥无期 2021-02-20 03:09

I have a date field setup in my mapping like this:

\"groupsAssignedDate\" : {
    \"type\" : \"date\",
    \"format\" : \"MM-dd-YYYY\"
}

In my

相关标签:
1条回答
  • 2021-02-20 03:57

    Sounds like you may have answered this yourself. Just using null rather than "" in the date field should work.

    If that's an issue, maybe consider this from
    https://www.elastic.co/guide/en/elasticsearch/reference/current/ignore-malformed.html#ignore-malformed-setting

    The index.mapping.ignore_malformed global setting can be set on the index level to allow to ignore malformed content globally across all mapping types (malformed content example is trying to index a string value as a numeric type).

    EDIT Edited the URL above to jump to the new information.

    EDIT Edited the URL above again to jump to the new information.

    0 讨论(0)
提交回复
热议问题