Skip to content

Can you Group by a field #321

Answered by fbaligand
Thehunter74 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

You should be able to do that:

  • First, add a "Bucket", of type "Terms", and choose the wished grouping field
  • then, add a "Metric", of type "Top Hit", choose the order to define the top hit, and choose the field that you want to display from the Top Hit
  • finally, add a "Metric", of type "Count"

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Thehunter74
Comment options

Answer selected by Thehunter74
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants