Since I couldn't find anything on Google:
Is it possible to filter on an aggregation in elasticsearch. Im thinking of someting like: Get all objects where SUM(obect.X) > 100.
Thanks in advance.
EDIT - Sample Data
I have the following document-structure:
{
docKey : 1
value: 2
},
{
docKey: 1
value: 5
},
{
docKey:1
value: 7
},
{
docKey:2
value:2
},...
I now want to query the docKey from the database where the sum of the value is bigger than X.
EDIT2
I found out that is something I have to do in my application logic. you can see it here