有没有办法可以指示ES以特定格式返回日期? 我很想得到你在下面看到的结果:
{ items[
{ image: ‘url’, title: ‘hello there' },
{ image: ‘url’, title: ‘hello there' }
]
}
我正在进行ES查询,返回此信息:
{
// snipp...
"hits" : {
"total" : 4,
"max_score" : 0.124633156,
"hits" : [ {
"_index" : "harvester",
"_type" : "entries",
"_id" : "5555b05750c4c81f97e669b9",
"_score" : 0.124633156,
"_source":{
"title": "hello there",
"image": "http://example.com/img.png""}
}, {
"_index" : "harvester",
"_type" : "mongodb",
"_id" : "5555b05750c4c81f97e669b9",
"_score" : 0.124633156,
"_source": {
"description": "long desc",
"url": "http://example.com""
}
}, {