I want to achieve some functionality which is available in SQL data stores. I have tried a lot but having a hard time achieving that functionality with elasticsearch.
SQL SELECT CD_HASH, COUNT(*) FROM GRW_MAIL_RECEIVER_LIST GROUP BY CD_HASH HAVING MAX(TM_RCV) <> MIN(TM_RCV)
Which version and license of ElasticSearch are you using? If you are not using the OpenSource version (the free basic license would be enough), there is a REST API to translate SQLs into ElasticSearch queries: SQL translate API | Elasticsearch Guide [7.13] | Elastic
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.