Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/sql-server-2008/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
<img src="//i.stack.imgur.com/RUiNP.png" height="16" width="18" alt="" class="sponsor tag img">elasticsearch ElasticSearch按查询删除记录时出错_<img Src="//i.stack.imgur.com/RUiNP.png" Height="16" Width="18" Alt="" Class="sponsor Tag Img">elasticsearch_Kibana - Fatal编程技术网 elasticsearch ElasticSearch按查询删除记录时出错,elasticsearch,kibana,elasticsearch,Kibana" /> elasticsearch ElasticSearch按查询删除记录时出错,elasticsearch,kibana,elasticsearch,Kibana" />

elasticsearch ElasticSearch按查询删除记录时出错

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

我试图通过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": 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
    },....