【发布时间】:2016-05-07 00:46:31
【问题描述】:
我有这个简单的搜索:
{
"from": 0,
"size": 5,
"query": {
"match_all": {}
},
"_source": [
"info"
],
"sort": {
"date": {
"order": "desc"
}
}
}
结果集是:
"hits":{
"hits":[
{"sort":[-9223372036854775808 ], "_type": "reports", "_source": …},
{"sort":[-9223372036854775808 ], "_type": "reports", "_source": …},
{"sort":[-9223372036854775808 ], "_type": "reports", "_source": …},
{"sort":[-9223372036854775808 ], "_type": "reports", "_source": …},
{"sort":[-9223372036854775808 ], "_type": "reports", "_source": …}
],
"total": 38,
"max_score": null
},
"_shards":{
"successful": 15,
"failed": 0,
"total": 15
},
"took": 11,
"timed_out": false
是否可以从结果集中删除字段"sort":[-9223372036854775808 ]?我必须使用此结果创建一个 json,但由于该字段中的这个大整数,我收到了一个错误 (json_decode(): integer overflow detected)。
【问题讨论】:
标签: php json elasticsearch overflow