gpt4 book ai didi

elasticsearch - 删除现有文档会引发FileNotFoundException吗?

转载 作者:行者123 更新时间:2023-12-03 01:51:31 24 4
gpt4 key购买 nike

1.我搜索文档,分别是:

"_index": "index-15",
"_type": "member",
"_id": "179751941",
"_score": 1,
"_routing": "15375",
"_source": {xxx}

2.我使用 DELETE方法删除文档,然后抛出 FileNotFoundException
Caused by: java.io.FileNotFoundException: http://ip:port/index-15/member/179751941
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1835)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1440)

最佳答案

如果使用routing参数创建文档(根据所显示的示例文档,这似乎是您的情况),那么在删除文档时,还需要指定路由参数?routing=15375

关于elasticsearch - 删除现有文档会引发FileNotFoundException吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40080659/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com