{
  aggregations: {
    my-terms-agg: {
      terms: {
        field: name
      }
    }
  }
}