elasticsearch Min#u分数不’;t使用elasticsearch处理AGG,elasticsearch,kibana,kibana-5,kibana-6,kibana-7,elasticsearch,Kibana,Kibana 5,Kibana 6,Kibana 7" /> elasticsearch Min#u分数不’;t使用elasticsearch处理AGG,elasticsearch,kibana,kibana-5,kibana-6,kibana-7,elasticsearch,Kibana,Kibana 5,Kibana 6,Kibana 7" />

elasticsearch Min#u分数不’;t使用elasticsearch处理AGG

elasticsearch Min#u分数不’;t使用elasticsearch处理AGG,elasticsearch,kibana,kibana-5,kibana-6,kibana-7,elasticsearch,Kibana,Kibana 5,Kibana 6,Kibana 7,任何弹性搜索成员都可以帮助我准备最小分数的聚合查询吗 在下面我写了我的查询,这个弹性查询运行,但没有得到任何文档计数,但有1000个文档可用。 请求: 我不知道这里到底在做什么,聚合查询可能不支持min_score。或者这里有语法错误。 非常感谢您的回复,这将对我非常有帮助。请分享您的映射并提供索引文档的示例Shello@AssaelAzran能否使用聚合进行min_评分?我找到了解决方案。{“最小分数”:100,“查询”:{…},“后过滤”:{…} GET product/_search {

任何弹性搜索成员都可以帮助我准备最小分数的聚合查询吗

在下面我写了我的查询,这个弹性查询运行,但没有得到任何文档计数,但有1000个文档可用。 请求:

我不知道这里到底在做什么,聚合查询可能不支持min_score。或者这里有语法错误。
非常感谢您的回复,这将对我非常有帮助。

请分享您的映射并提供索引文档的示例Shello@AssaelAzran能否使用聚合进行min_评分?我找到了解决方案。{“最小分数”:100,“查询”:{…},“后过滤”:{…}
GET product/_search
{
    "min_score":1000,
    "size":0,
    "aggs":{
        "PriceRanges":{
            "filter":{
                "bool":{
                    "should":[
                        {
                            "match_all":{
                            }
                        }
                    ],
                    "must":[
                        {
                            "term":{
                                "Published":{
                                    "value":"true"
                                }
                            }
                        },
                        {
                            "bool":{
                                "should":[
                                    {
                                        "match":{
                                            "Stores.Id":0
                                        }
                                    },
                                    {
                                        "match":{
                                            "Stores.Id":2
                                        }
                                    }
                                ]
                            }
                        }
                    ]
                }
            },
            "aggs":{
                "Facets":{
                    "range":{
                        "field":"UCF_FinalPrice",
                        "ranges":[
                            {
                                "to":"100"
                            },
                            {
                                "from":"101",
                                "to":"998"
                            },
                            {
                                "from":"999",
                                "to":"1999"
                            },
                            {
                                "from":"2000",
                                "to":"2999"
                            },
                            {
                                "from":"3000"
                            }
                        ]
                    }
                }
            }
        }
    }
}
this response result of this query:
{
  "took" : 1,
  "timed_out" : false,
  "_shards" : {
    "total" : 5,
    "successful" : 5,
    "skipped" : 0,
    "failed" : 0
  },
  "hits" : {
    "total" : 0,
    "max_score" : 0.0,
    "hits" : [ ]
  },
  "aggregations" : {
    "PriceRanges" : {
      "doc_count" : 0,
      "Facets" : {
        "buckets" : [
          {
            "key" : "*-100.0",
            "to" : 100.0,
            "doc_count" : 0
          },
          {
            "key" : "101.0-998.0",
            "from" : 101.0,
            "to" : 998.0,
            "doc_count" : 0
          },
          {
            "key" : "999.0-1999.0",
            "from" : 999.0,
            "to" : 1999.0,
            "doc_count" : 0
          },
          {
            "key" : "2000.0-2999.0",
            "from" : 2000.0,
            "to" : 2999.0,
            "doc_count" : 0
          },
          {
            "key" : "3000.0-*",
            "from" : 3000.0,
            "doc_count" : 0
          }
        ]
      }
    }
  }
}