Suppose my type has an integer field and a name field.
The Top N query is able to find the top N-highest values of the integer field, how do I link it back to the corresponding name field?
For example, I would want a histogram displaying the n-highest documents based on the integer field, but I'd also want to show the name field on the legend of the histogram