In other words can you create a bucket for each document in your query and 
then add some further aggregations using values of that document.

I also asked for the same question in detail on stack overflow here is a 
link if you need more details to the 
question 
http://stackoverflow.com/questions/25720027/elasticsearch-aggregations-is-it-possible-to-reference-filter-query-data-in-agg

if you don't understand something please ask me I'll try my best to explain.

if it's not possible could someone just tell me that, because I've spend a 
lot of hours trying to find a way of achieving this without any luck.

or maybe you have some other ideas on how I should represent my data to 
meet my demands?

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/43c193e9-0ebe-48b9-85b5-24e29f145ef0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to