You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We can use a terms aggregation on id + top_hits aggregation sorted by updatedAt to get the latest revision for each id. However to get the second page of this request would be non-trivial as it would require getting both the first and second page of the top level terms aggregation combined in one response.
The text was updated successfully, but these errors were encountered:
kelaban
changed the title
Terms Aggregation From Offset
Terms Aggregation with From Parameter
Oct 2, 2014
kelaban
changed the title
Terms Aggregation with From Parameter
Feature: Terms Aggregation with From Parameter
Oct 3, 2014
Forgive me if there is a better way to do this.
In the #6299,
from
was added totop_hits
aggregations. Ifterms
aggregations also had afrom
field, it would allow to to dodistinct
type of queries.Consider the following documents in an index:
We can use a
terms
aggregation onid
+top_hits
aggregation sorted byupdatedAt
to get the latest revision for eachid
. However to get the second page of this request would be non-trivial as it would require getting both the first and second page of the top level terms aggregation combined in one response.The text was updated successfully, but these errors were encountered: