我是一个总ES初我不知道如果我想做的事甚至是可能的。
我有如下一个 viewer
索引用下面的映射:
"mappings": {
"properties": {
"id": {"type": "text"},
"name": {"type": "text"},
"location": {"type": "text"},
"viewed_videos": { //array of all the videos a viewer saw and their view counts
"type": "nested",
"properties": {
"id": {"type": "text"},
"name": {"type": "text"},
"description": {"type": "text"},
"times_viewed": {"type": "long"},
},
},
}
}
我想弄清楚什么是最观看视频的位置。 所以我需要的方式总结 times_viewed
每 viewed_video
在许多 viewer
s然后获得的最高X的一个特定位置。
这可能吗?