# Top hit field calrification

**URL:** https://discuss.elastic.co/t/top-hit-field-calrification/230095
**Category:** Kibana
**Created:** [April 28, 2020, 7:45am UTC](https://discuss.elastic.co/t/top-hit-field-calrification/230095 "2020-04-28T07:45:31Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![anjilinga](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anjilinga/32/86010_2.png) [@anjilinga](https://discuss.elastic.co/u/anjilinga)
#### Post date: [April 28, 2020, 7:45am UTC](https://discuss.elastic.co/t/top-hit-field-calrification/230095/1 "2020-04-28T07:45:31Z")

</div>

When i select the top hit metric, It is asking two fields first one is to get the metric value and second one is for sort ?

I am using 7.5 version, there is not exclusive sort field in this version. i can see in ilder version two field options and one sort option. can some one clarify how top hit works.

my use case is, for each uniqueId we get the updates every 2 mins. we always want to display the latest record in datatable with all the fields.  
I am doing i am taking terms aggrgation based on uniquid and for each field doing tophit metric aggrgation.

Is this approach is correct ?

---

<div class="post-metadata">

### Author: ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)
#### Post date: [May 4, 2020, 4:04pm UTC](https://discuss.elastic.co/t/top-hit-field-calrification/230095/2 "2020-05-04T16:04:11Z")

</div>

Can you post a screenshot please?

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [June 1, 2020, 4:04pm UTC](https://discuss.elastic.co/t/top-hit-field-calrification/230095/3 "2020-06-01T16:04:18Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
