Elasticsearch ---使用相同的查询返回不同的命中总数

时间:2018-04-17 10:12:55

标签: elasticsearch

我使用一个非常简单的查询来搜索最后一天没有文档收入的索引。但我得到了不同的点击量,我不知道为什么,我希望有人可以帮助我,我的弹性搜索版本是5.5.x。

查询:

GET app-wechat-2018.04.16/_search?preference=_primary
  {
    "query": {
         "match": {
            "message": "maidian" 
        }

    }
}

一个结果是这样的:

{
  "took": 76,
  "timed_out": false,
  "_shards": {
    "total": 5,
    "successful": 5,
    "failed": 0
  },
  "hits": {
    "total": 29579,
    "max_score": 4.108034,
    "hits": [
      {
        "_index": "app-wechat-2018.04.16",

...

另一个结果是这样的:

{
  "took": 3,
  "timed_out": false,
  "_shards": {
    "total": 5,
    "successful": 5,
    "failed": 0
  },
  "hits": {
    "total": 29582,
    "max_score": 4.1081295,
    "hits": [
     { 
           "_index": "app-wechat-2018.04.16",

0 个答案:

没有答案