my mapping :
POST /packtwo-order-sku-log
{
"settings": {
"number_of_shards": 5,
"number_of_replicas": 1
},
"mappings": {
"baitu": {
"properties": {
"order_id":{
"type": "long"
},
....
}
}
}
}
when I search
"query": {"term" : {"order_id" : 10160815114820888}}
OR
"query": {"match" : {"order_id" : 10160815114820888}}
I got hits 0; But when I change order_id to 10160815114820887 , I got hits. However, the JSON ES returned shows :
"hits": [
{
"_index": "packtwo-order-sku-log",
"_type": "baitu",
"_id": "AVaMWcchVwJTsNV878q2",
"_score": 2.7917593,
"_source": {
"order_id": 10160815114820888,
...
}
}
I searched 10160815114820888 -> no result
I searched 10160815114820887 -> result is 10160815114820888
I find long type in official doc :
long
A signed 64-bit integer with a minimum value of -2^63 and a maximum value of 2^63-1
My data is not longer than 2^63-1
So,what is my problem?