删除一个存在的doc抛出一个FileNotFoundException?

时间:2016-10-17 07:27:03

标签: elasticsearch

1.我搜索文档,resp:

"_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)

1 个答案:

答案 0 :(得分:1)

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