该文件建议以下功能删除特定索引:
client.delete({
index: 'myindex',
type: 'mytype',
id: '1'
}, function (error, response) {
// ...
});
Run Code Online (Sandbox Code Playgroud)
我已经适应了:
client.delete({
index: '_all'
}, function (error, response) {
// ...
});
Run Code Online (Sandbox Code Playgroud)
但是这给了我以下错误:
Unable to build a path with those params. Supply at least index, type, id
Run Code Online (Sandbox Code Playgroud)
我一直在寻找几个小时无济于事,有人有任何想法吗?