Elasticsearch中的文档是否重复?

时间:2017-09-01 19:49:04

标签: elasticsearch logstash

我从Logstash向Elastic 5.5发送一份文件。但是我在Elasticsearch中获得了重复的文档,这两个文档具有不同的ID但是相同的字段。下面我只显示索引,类型和ID。

"hits": {
    "total": 2,
    "max_score": 1,
    "hits": [
      {
        "_index": "logstash-2017.09.01",
        "_type": "threat",
        "_id": "AV4-7XhNlO-DC0yfkKOf",
        "_score": 1
      },
      {
        "_index": "logstash-2017.09.01",
        "_type": "threat",
        "_id": "AV4-7XhklO-DC0yfkKOg",
        "_score": 1
      }
    ]
  }

0 个答案:

没有答案