my mappiing:
{
"20150520": {
"mappings": {
"01": {
"properties": {
"rekognition_tags": {
"properties": {
"confidence": {
"type": "double"
},
"tag": {
"type": "string"
}
}
},
"url": {
"type": "string",
"index": "not_analyzed"
}
}
}
}
}
}
my query
{
"query": {
"bool": {
"must": [
{
"query_string": {
"query": "sky"
}
},
{
"range": {
"confidence": {
"gt": "0.5"
}
}
}
]
}
}
}
result (2 hits)
"_source": {
"rekognition_tags": [
{
"tag": "vessel",
"confidence": 0.7106
},
{
"tag": "boat",
"confidence": 0.7106
},
{
"tag": "outdoors",
"confidence": 0.6975
},
{
"tag": "sky",
"confidence": 0.6957
},
{
"tag": "cloud",
"confidence": 0.6172
}
],
"url": "http://zencirclemedia.blob.core.windows.net/media/5c233265cd
bef5b10929ddb8e12c2bfd.jpg"
}
"_source": {
"rekognition_tags": [
{
"tag": "collection",
"confidence": 0.876
},
{
"tag": "collage",
"confidence": 0.876
},
{
"tag": "outdoors",
"confidence": 0.0908
},
{
"tag": "sky",
"confidence": 0.0898
},
{
"tag": "sunset",
"confidence": 0.0898
}
],
"url": "http://zencirclemedia.blob.core.windows.net/media/7dc9a884c3
4231987ad15ec3c54b036d.jpg"
}
the second hit is wrong since sky's confidence is under 0.5, why elasticsearch still returns it?
Thanks