I need to aggregate (group-by) using 3 fields in ES.
Can I do that in 1 query or that I need to use a facet + iterate for each column?
Thank you
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can do it by 2 ways :
1) using multiple fields in a single facet result :
example for single fields facet :
example for multiple field in a single facet result :
2) Use multiple facet result set :
Reference Link :
http://www.elasticsearch.org/guide/reference/api/search/facets/terms-facet.html