Hi,
The mapping on my index doesn't seem to be respected. One of the properties, bytes_read
is defined as an integer in the mapping. But I have also enabled allow_malformed
in the index settings, in the hope of salvaging data that doesn't fit the mapping.
This is (a part of) the index effective mapping, as reported in kibana (Settings > Index Management > Mapping)
{
"mapping": {
"properties": {
"bytes_read": {
"type": "integer"
}
}
}
}
And (a part of) the index settings:
{
"settings": {
"index": {
"mapping": {
"ignore_malformed": "true"
}
}
}
}
A new index is created everyday. The mapping is consistent throughout the indices, but the value of bytes_read
is still mapped as a string, according to kibana:
Also, I can't search or use it like a number anyway. Older indices didn't have the correct mapping, and probably assigned the type string/keyword to bytes_read
, but it should now be fixed.
tldr: Why is my bytes_read
not stored as an integer?