I've indexed the following document:
{
"_index": "index_name",
"_type": "_doc",
"_id": "ePvEB-X7TNSfKMdwxOcGTw",
"_score": 1.0,
"_source": {
"jWVuCKvK": 6.65678676226262E13,
}
}
with the corresponding mapping:
"properties": {
"jWVuCKvK": {
"type": "float"
}
}
Field jWVuCKvK
has the floating point value: 66567867622626.2
The numbers 66567867622626, 66567867622626.545644 or 66567867622626.5 match this number. Sample search request:
POST /_search
{
"size":1,
"terminate_after":30001,
"query":{
"bool":{
"filter":[
{
"term":{
"jWVuCKvK":{
"value":66567867622626,
"boost":1.0
}
}
}
],
"adjust_pure_negative":true,
"boost":1.0
}
},
"sort":[
{
"_shard_doc":{
"order":"asc"
}
}
],
"track_total_hits":-1,
"pit":{
"id":"n5qzAwEMdXNlcl9wcm9maWxlFklOZ1VWWUlWUi0yU2hpMS1TUlJ3dlEAFnJQZ3lVTU9DUzR1VXkzbU5EalBJWFEAAAAAAAAAAg0WVkRTeUY5X0JTcWFnVm11a290eXQ1UQABFklOZ1VWWUlWUi0yU2hpMS1TUlJ3dlEAAA==",
"keep_alive":"10m"
}
}
I would expect it to match only for value 66567867622626.2. How could I achieve this? Please note that i am using dynamic mapping.