# Changelog

May 31, 2022

New topk Implementation

Changelog Screenshot

We worked on and deployed a new topk implementation with a scaling factor. With this implementation, you can get the precise estimates when you want to know the top 5 or top 10 (where ‘5’ and ’10’ are ‘k’ in the topk) values for a field in a dataset.

The topK aggregation takes two arguments:

  1. The field to aggregate
  2. How many results to return (top 5, or top 10, or top 20, etc)

Learn more about this aggregation here