Hi Ross, There is no way to do it today without repeating the filter and nesting it inside of a `not` filter. We are considering adding info about missing and other buckets to our terms aggregation, you can read the discussion at https://github.com/elasticsearch/elasticsearch/issues/5324
On Thu, Feb 26, 2015 at 4:00 PM, Ross Duncan <[email protected]> wrote: > Hi there, > > Im a little new to the nuances of building aggregations, but essentially I > am trying to construct an aggregation which results in an "in" bucket and > an "out" bucket with respect to some predicate (filter?) that I want to > apply. > > I can easily achieve the in-bucket by using a filter aggregation, but if I > also want to see the inverse to this filter I would rather not have to > create (repeat) the filter to identify the "out" set. > > Is there an easy way to do this? > > Thanks, > Ross > > -- > 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/b2a8e295-6db1-49ce-af2d-d78638f9cf48%40googlegroups.com > <https://groups.google.com/d/msgid/elasticsearch/b2a8e295-6db1-49ce-af2d-d78638f9cf48%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Adrien Grand -- 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/CAL6Z4j74_iX33r-3n%2BzbwyXWGnTm_-Ci6gDCyv8d2u%3D-8CQNew%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
