-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Closed
Closed
Copy link
Labels
:Core/Infra/CoreCore issues without another labelCore issues without another label:StorageEngine/MappingThe storage related side of mappingsThe storage related side of mappings>bugTeam:Core/InfraMeta label for core/infra teamMeta label for core/infra teamTeam:StorageEngine
Description
Elasticsearch Version
main, 9.1, 8.19
Installed Plugins
No response
Java Version
bundled
OS Version
n/a
Problem Description
The last optimised value does not get properly reset and its reused later in different fields.
Steps to Reproduce
# Create an index with the following mapping:
PUT /my-index
{
"mappings": {
"_data_stream_timestamp": {
"enabled": true
},
"properties": {
"@timestamp": {
"type": "date"
},
"my-funky-field": {
"type": "keyword",
"fields": {
"subfield_text": {
"type": "text"
}
}
},
"my-poor-field": {
"type": "ip"
}
}
}
}
# Index the following document
POST /my-index/_doc
{
"@timestamp": "2024-01-01T10:00:52.000Z",
"my-funky-field": "14`\\%+",
"my-poor-field": [
"184.123.133.116"
]
}
Then we see the error:
"caused_by": {
"type": "illegal_argument_exception",
"reason": "'14`\\%+' is not an IP string literal."
}
Logs (if relevant)
No response
Metadata
Metadata
Assignees
Labels
:Core/Infra/CoreCore issues without another labelCore issues without another label:StorageEngine/MappingThe storage related side of mappingsThe storage related side of mappings>bugTeam:Core/InfraMeta label for core/infra teamMeta label for core/infra teamTeam:StorageEngine