나는 총 ES 초과 궁금하면 내가 무엇을 하고 싶은 심지어 가능합니다.
나는 다음과 같은 a viewer
index 다음 맵핑을 사용:
"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 람을 위해 특정 위치에 있습니다.
하는 것이 가능할까요?