Hi,
so i have prepared real example 
image following data :
CREATED | USER_ID
2017-01-01T15:40:00.000Z | 1
2017-01-01T15:40:00.000Z | 2
2017-02-01T15:40:00.000Z | 1
2017-02-01T15:40:00.000Z | 3
when i execute simple _search query (math all) -> you can check data here (https://pastebin.com/RgYfQq0d)
now when i execute following query :
"query": {
"bool": {
"must": {
"range": { "CREATED": { "gte": "2017-01-31T12:00:00.000Z"} }
},
"filter": {
"bool": {
"must_not": {
"range": { "CREATED": { "lte": "2017-01-31T12:00:00.000Z"} }
}
}
}
}
},
"_source": {
"includes": [
"CREATED",
"USER_ID"
],
"excludes": []
}
I would expect to return single instance USER_ID:3 ... but i have 3 and also 1
What am i doing wrong ?
thanks a lot