Hi,
I want to convert the following query in mysql to elastic search:
Select field1, count(field1), field2, count(field2), field3, count(field3)
from table1
group by field1, field2, field3
Having ddate between ‘2017202’ and ‘20180101’
Thanks,
Hi,
I want to convert the following query in mysql to elastic search:
Select field1, count(field1), field2, count(field2), field3, count(field3)
from table1
group by field1, field2, field3
Having ddate between ‘2017202’ and ‘20180101’
Thanks,
You can use:
Having ddate between ‘2017202’ and ‘20180101’
A range query: Range Query | Elasticsearch Reference [6.1] | Elastic
group by field1, field2, field3
Terms aggregations: Terms Aggregation | Elasticsearch Reference [6.1] | Elastic
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.