私はelasticsearch 2.3を使用しています。&センスでドキュメントをクエリで削除しようとしています。Elasticsearch 2.3 - クエリでドキュメントを削除する
私はこれらのドキュメントを参照してください。 https://www.elastic.co/guide/en/elasticsearch/plugins/current/delete-by-query-usage.html
要求
DELETE /monitors/monitor/_query
{
"term": { "ProcessName" : "myProcName" }
}
応答
{
"found": false,
"_index": "monitors",
"_type": "monitor",
"_id": "_query",
"_version": 11,
"_shards": {
"total": 2,
"successful": 1,
"failed": 0
}
}
あなたが見ることができるように、私はたとえどんな結果が届きません私は "myProcName"という名前のProcessNameを持っています。 レスポンスでは、エンジンが_id
と一致し、_query
となります。
EDIT 1: た場合でも、送信要求:
DELETE /monitors/monitor/_query
{
"query": {
"term": { "ProcessName" : "tibapp_qflowfile" }
}
}
私は取得しています回答:
{
"found": false,
"_index": "monitors",
"_type": "monitor",
"_id": "_query",
"_version": 1,
"_shards": {
"total": 2,
"successful": 1,
"failed": 0
}
}
クエリは "クエリ":{} '、つまり{{"クエリ ":{"用語 ":{" ProcessName ":" myProcName "}内にラップする必要があります}} ' – Val
@Valこんにちは..私の質問を編集しました – ohadinho
' curl 'localhost:9200/_cat/plugins?v''を実行するとどうなりますか? – Val