以下是警告信息
[types removal] Specifying types in bulk requests is deprecated
不建议在批量添加中指定 type 类型, 6.0 以后不建议这样玩
restHighLevelClient.bulk() 修改为 restHighLevelClient.index()
client.index(new IndexRequest(t.getIndexName(), t.getTypeName(), String.valueOf(id)).source(contentBuilder));
采用单条插入, 后警告消失
借鉴文档
https://gitlab.com/gitlab-org/gitlab/-/issues/299769
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)