Hello!
I got confused with the top_hits
aggregation. It is not clear for me that it is a metric one.
While reading top_hits
reference page one can find this two conflicting statements:
A
top_hits
metric aggregator keeps track of the most relevant document being aggregated.
The
top_hits
aggregator isn’t a metric aggregator and therefore can’t be used in theorder
option of theterms
aggregator.
It seems to me that there is a bit of incosistency on that page: one statement says that it is a metric one and other says the opposite.
As for me, the top_hits
aggregation looks more like a bucket one, because it yields a set of documents almost the same way, as e.g. the filter
aggregation do. I am talking abstracting mine mind from the inner implementation under the hood, as I don't know it. Perhaps, I would think the other way if I was familiar with sources
I would be appreciative if someone clarifies this issue for me.