Elasticsearch bucket aggreation with filters on returned buckets


(Nipun) #1

I have posted a question on Stack overflow regarding the problem. Here is the link http://stackoverflow.com/questions/33873625/how-do-we-bucket-aggregate-only-on-the-matched-prefix-on-elasticsearch

Can anyone please help me with the problem?


(Adrien Grand) #2

I suppose the "include" feature of terms aggs would do the job? https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-terms-aggregation.html#_filtering_values_2


(Nipun) #3

Thanks. That was it.


(system) #4