Hey guys,
I am using ES 1.7. I run following query and i expect to get 1 which is current popularity for it. but it returns 4607464916994563600.
POST /myIndex/en/_search
{
"size": 1,
"script_fields": {
"toTestField": {
"script": "doc['popularity'].value"
}
}
}
Result:
{
"took": 87,
"timed_out": false,
"_shards": {
"total": 2,
"successful": 2,
"failed": 0
},
"hits": {
"total": 3059534,
"max_score": 1,
"hits": [
{
"_index": "myIndex",
"_type": "en",
"_id": "12345",
"_score": 1,
"fields": {
"toTestField": [
4607464916994563600
]
}
}
]
}
}
Any ideas, why this happen?