Last seen time for term values?


I have a mapping that has a host and a timestamp (among other fields), and
would like to get a "last seen time" for some number of recently seen
hosts. Is there a better way to do this than to first do a term facet on
the host field, then a range query (limit=1) on each of the term values
sorted in descending order?


You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
For more options, visit