I have a source object similar to this
"_source" : {
"phone" : "1234567890",
"email" : "test_test.com",
"group" : "test",
"name" : "Rhonda Shawarma",
"prop.size_min" : "0",
"prop.size_max" : "1000000"
}
I wrote a basic query on Kibana which works fine
{
"query": {
"bool": {
"must": [
{
"range": {
"prop.size_max": {
"gte": "100"
}
}
},
{
"range": {
"prop.size_min": {
"lte": "100"
}
}
}
]
}
}
}
This returns the document for me but when I change lte and gte to "101" or even store them as integers and try it with 101 (Not as a string) then I don't get the document back. Is there something I'm missing or doing wrong here?