更新时间:2023-02-08 23:23:26
好,我终于找到了这些页面(事先应该花更多的时间在文档上),看来我们将保存视频的属性设置为:嵌套,然后使用嵌套查询.
OK, I finally found these pages (should have taken more time with the docs beforehand) and it seems we set the property that holds the video to type:nested, then use nested queries.
http://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-nested-query.html
http://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-nested-filter.html
希望这对将来的人有帮助.
Hope this helps someone down the road.