How can i use range filter when i use tems_stats


(이지홍) #1

i want to use below query..
but, range filter is not working.
it's impossible ?

{
"size": "0",
"query": {
"match_all": {}
},
"filter": {
"range": {
"created": {
"from": %d,
"to": %d
}
}
},
"facets": {
"playUniqueId_playTimeScore_stats": {
"terms_stats": {
"key_field": "uniquePlayId",
"value_field": "playTimeScore",
"size": "0"
}
}
}
}

//plz help me.
i want to add range condition to the "tems_stats" queries
plz help me.


(system) #2