When implementing a custom aggregation: can I access the result documents 
in my aggregator so that I can skip result documents based on it's 
properties?

To make it clearer I explain 

I have an index "products" that contains "product" documents. A product 
contains a nested collection of "variant" documents.

The requirements is to have a query that return "variant" documents. Kind 
of a "Nested Aggregation".

To complicate things: not all "variants" should be returned. Some dynamic 
filtering has to be applied. And this filtering depends on properties of 
the nested "variant" documents. I need to peek at all variants contained in 
a product in order to determine if a variant should be included in the 
result or not. 

I am thinking that I could accomplish this writing a plugin which contains 
the custom aggregation when my initial question could be answered with 
"yes".

Thanks for your suggestions and insights.

A.



-- 
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/7dca8221-0764-4703-8b75-0ae492961dd1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to