Hi,
I need a help on the query where I want to search by phone numbers and get latest date amount charged for that phone number
my mapping structure is as follows
Do you really need to use an aggregation? I think it's simpler to just sort the search results on date_timestamp and ask Elasticsearch for 1 hit. That one hit will then tell you everything you want to know about the most recent transaction for a given phone number.
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.