I got confused with the
top_hits aggregation. It is not clear for me that it is a metric one.
top_hits reference page one can find this two conflicting statements:
top_hitsmetric aggregator keeps track of the most relevant document being aggregated.
top_hitsaggregator isn’t a metric aggregator and therefore can’t be used in the
orderoption of the
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.