Skip to content

Strings formatted as 128.0. (ending in a decimal) are detected as date #116946

@lahsivjar

Description

@lahsivjar

Elasticsearch Version

8.x, main

Installed Plugins

No response

Java Version

bundled

OS Version

all

Problem Description

Strings like 128.0. are detected as a date and could lead to an incorrect date mapping for dynamic mappings.

Steps to Reproduce

PUT data/_doc/1 
{ "test": "128.0." }

GET /data // check the mapping for `test`

The above would map test field as a date.

Logs (if relevant)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions