Min_score doesn't working with aggs

Hello,
Can any elastic search member help me for prepare aggregation query with min_score?

In below i wrote my query, and this elastic query run but not getting any document count, but 1000 score documents are available.
Request:
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"
}
]
}
}
}
}
}

}

Response result:
{
"took" : 4,
"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
}
]
}
}
}
}

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.