假设 es 中有下面格式的数据:
```json
{
"sid": "11232",
"100302": {
"date": "2016-09-21",
"source": 3002,
"prob": 0.618
},
"100301": {
"date": "2016-09-21",
"source": 3002,
"prob": 0.903
},
......
}
```
----------------------------------------
```json
{
"sid": "21232",
"100302": {
"date": "2016-09-21",
"source": 3002,
"prob": 0.64
},
......
}
```
----------------------------------------
能不能返回结果类似下面的结果(节省网络占用):
```josn
[
{
"sid":"11232",
"_source":["100301","100302",...]
},
{
"sid":"21232",
"_source":["100302",...]
},
]
```
google 完全不知道搜什么关键字了~~~没找到合适的答案
1 个回复
medcl - 今晚打老虎。
赞同来自: zorro 、chu8129
https://www.elastic.co/guide/e ... .html