elasticsearch ElasticSearch按查询删除记录时出错
我试图通过delete_by_查询删除ES中的大量文档。 但我看到了以下错误 质疑 结果
elasticsearch ElasticSearch按查询删除记录时出错,
elasticsearch,kibana,
elasticsearch,Kibana,我试图通过delete_by_查询删除ES中的大量文档。 但我看到了以下错误 质疑 结果 { "took": 50489, "timed_out": false, "total": 100000, "deleted": 0, "batches": 1, "version_conflicts": 1000, "noops": 0, "retries": { "bulk": 0, "search": 0 }, "throttled_millis
{
"took": 50489,
"timed_out": false,
"total": 100000,
"deleted": 0,
"batches": 1,
"version_conflicts": 1000,
"noops": 0,
"retries": {
"bulk": 0,
"search": 0
},
"throttled_millis": 0,
"requests_per_second": -1,
"throttled_until_millis": 0,
"failures": [
{
"index": "indexName",
"type": "typeName",
"id": "HVBLdzwnImXdVbq",
"cause": {
"type": "version_conflict_engine_exception",
"reason": "[typeName][HVBLdzwnImXdVbq]: version conflict, current version [2] is different than the one provided [1]",
"index_uuid": "YPJcVQZqQKqnuhbC9R7qHA",
"shard": "1",
"index": "indexName"
},
"status": 409
},....
请阅读
处理此问题有两种方法,一种是将url设置为忽略版本冲突,另一种是将查询设置为忽略版本冲突:
如果您希望计算版本冲突而不是导致它们中止,则在url上设置conflicts=procedue
,或在请求正文中设置“conflicts”:“procedue”
请阅读
处理此问题有两种方法,一种是将url设置为忽略版本冲突,另一种是将查询设置为忽略版本冲突:
如果您希望计算版本冲突而不是导致它们中止,则在url上设置conflicts=procedue
,或在请求正文中设置“conflicts”:“procedue”
{
"took": 50489,
"timed_out": false,
"total": 100000,
"deleted": 0,
"batches": 1,
"version_conflicts": 1000,
"noops": 0,
"retries": {
"bulk": 0,
"search": 0
},
"throttled_millis": 0,
"requests_per_second": -1,
"throttled_until_millis": 0,
"failures": [
{
"index": "indexName",
"type": "typeName",
"id": "HVBLdzwnImXdVbq",
"cause": {
"type": "version_conflict_engine_exception",
"reason": "[typeName][HVBLdzwnImXdVbq]: version conflict, current version [2] is different than the one provided [1]",
"index_uuid": "YPJcVQZqQKqnuhbC9R7qHA",
"shard": "1",
"index": "indexName"
},
"status": 409
},....