Open lkts opened 3 months ago
8.15
No response
bundled
-
Trying to index an object into a unsigned_long field fails even with ignore_malformed enabled. See also #109539.
unsigned_long
ignore_malformed
PUT /my_index { "mappings": { "properties": { "ul": { "type": "unsigned_long", "ignore_malformed": true } } } } } // OK PUT my_index/_doc/1 { "ul": "hello" } // fails PUT my_index/_doc/2 { "ul": {"string": "hello"} }
This happens because arser.text() throws IllegalStateException but only IllegalArgumentException is caught to handle malformed values.
arser.text()
IllegalStateException
IllegalArgumentException
Pinging @elastic/es-storage-engine (Team:StorageEngine)
Elasticsearch Version
8.15
Installed Plugins
No response
Java Version
bundled
OS Version
-
Problem Description
Trying to index an object into a
unsigned_long
field fails even withignore_malformed
enabled. See also #109539.Steps to Reproduce
Logs (if relevant)
This happens because
arser.text()
throwsIllegalStateException
but onlyIllegalArgumentException
is caught to handle malformed values.