es 可以把一张表的聚合结果直接写入另一张表中吗

2019-08-16 11:23:36 +08:00
 rizon

就是有没有办法不用先查询到本地,而是直接写到另一张表。 比如通过脚本什么的。

1482 次点击
所在节点    程序员
4 条回复
habicat
2019-08-16 11:31:59 +08:00
不能吧 我们做同样的事是先导本地在用脚本的
Rush9999
2019-08-16 12:31:45 +08:00
https://www.elastic.co/guide/en/elasticsearch/reference/7.3/docs-reindex.html
POST _reindex
{
"source": {
"index": "twitter",
"query": {
"term": {
"user": "kimchy"
}
}
},
"dest": {
"index": "new_twitter"
}
}
672795574
2019-08-16 13:03:15 +08:00
5.x 以后有 reindex
kiddingU
2019-08-16 13:07:01 +08:00
reindex

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/592407

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX