Terms aggregation and regex filter

Hi all,

With the terms aggregation, you can use include/exclude to filter the
buckets with regular expressions as described here:
http://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-terms-aggregation.html
.

I am wondering whether it is possible to do the regex filtering before the
buckets are returned? I have used the include/exclude option now, but I am
getting incorrect total document counts.Could someone share an example
query on how to do this?

Thanks in advance!

/JZ

--
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAA%2BD3eXKangrYSiT29ACka%3DJ3PZborkPJvHjr4Ms-Tw9Me7Qww%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.