Some values in the field is String, some is Integer, though Mapping is Integer

I have created a schema config, where I have mapped "Total Number of Changes" field to "Integer". But I can see the values are both number, and string. I have also tried re-indexing but results are same.
How can I deal with this issue, as results are getting wrong due to this. Any help will be much appreciated.

Result Sample : "Total Number of Changes" : "203", "Total Number of Changes" : 0,

Schema
image

Elasticsearch sends you back what you sent.

If you sent it as a String it's returned as is.

Thanks @dadoonet for the prompt reply :slight_smile: you saved my day. Thanks a lot

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.