in the below query I want only 1 results from department "a" and two from "b"
but when I run the query the results are empty. Can anyone please tell
me where am I going wrong
{
"query": {
"range": {
"Date": {
"gte": "1440364380",
"lte": "1440450780"
}
}
},
"filter": {
"bool": {
"should": [
{
"term": {
"Department": "a"
size:1
},
"term": {
"Department": "b"
size:2
}
}
]
}
},"sort": [
{
"Date": {
"order": "desc"
}
}
]
}