How to do aggregates with elasticsearch


#1

Hi,all:

I did an aggregate query but it can’t correctly executed using elasticsearch datasource.
I don’t know if it is the grammar problem.
so, if there is a doc figuring out the grammar, it is very appreciated.

below is the issue published on github:

Issue Summary

I post a simple aggregates query getting max value of column “orderNumber” in redash using elasticsearch datasource, but got no result.
Then I excecute the same query in elasticsearch, a proper aggregate value of 51 returned

Technical details:

  • Redash Version: latest release, installed last week
  • Browser/OS: installed on centos, browsed in chrome
  • How did you install Redash: docker-compse