Hey guys,
I have an Elasticsearch field called activity_time, and I need to get the maximum activity_time from a subset of my data. For Ex, I want to get the max value of activity_time from the first 100 records when sorted in ascending order by activity_time.
I am aware of the max aggregation query,
However, I'm struggling to limit this to only the first 100 records. I read up about sampler aggregation but cannot seem to make it work, any assistance would be greatly appreciated.
Thanks for following up, @Het_Test. That may be because the sampler returns a random subset from the dataset. What about a multi-step query such as this one?
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.