case classTermsAggResult(name: String, buckets: Seq[TermBucket], docCountErrorUpperBound: Int, otherDocCount: Int) extends BucketAggregation with Product with Serializable
case classTopHit(index: String, type: String, id: String, score: Option[Double], sort: Seq[String], source: Map[String, Any]) extends Product with Serializable
case classTopHitsResult(name: String, total: Long, maxScore: Option[Double], hits: Seq[TopHit]) extends MetricAggregation with Product with Serializable