ES查询hits.total已更改

时间:2018-09-17 06:46:58

标签: elasticsearch

现在我正在使用ES,我们部署了3个节点和5个分片。当我执行简单查询时,hits.total计数已在2个值内变化。为什么会这样?哪一个准确?下面是我的DSL。

GET /customs/shipment/_search
{
  "from": 0,
  "size": 10,
  "query": {
    "bool": {
      "must": [
        {
        "bool": {
          "should": [{
            "match": {
              "buyer": {
                "query": "Thermo Electron LED"
              }
            }
          }, {
            "match": {
              "supplier": {
                "query": "Thermo Electron LED"
              }
            }
          }]
        }
      }]
    }
  },
  "min_score": 15.0,
  "sort": [{
    "arrivaldate": {
      "order": "desc"
    }
  }]
}

0 个答案:

没有答案