Best pratices to handle multiple value field separated in terms stats?

(Fabien Guiraud) #1

Hi every ElasticSearch Users,

What is the best pratices to handle with ElasticSearch query like that in
SELECT SUM(col_a), SUM(col_b), SUM(col_c), COUNT(col_d), col_e FROM table
GROUP BY col_e ORDER BY (col_a OR col_b OR col_c OR col_d)

It's a real problem for me because I use terms stats with one value per
field, but I can't handle sorting like that...

Please anyone help me :frowning:


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
For more options, visit

(system) #2