com.sksamuel.elastic4s.searches.aggs.ReverseNestedAggregationBuilder.scala Maven / Gradle / Ivy
package com.sksamuel.elastic4s.searches.aggs
import org.elasticsearch.search.aggregations.AggregationBuilders
import org.elasticsearch.search.aggregations.bucket.nested.ReverseNestedAggregationBuilder
import scala.collection.JavaConverters._
object ReverseNestedAggregationBuilder {
def apply(agg: ReverseNestedAggregationDefinition): ReverseNestedAggregationBuilder = {
val builder = AggregationBuilders.reverseNested(agg.name)
agg.path.foreach(builder.path)
SubAggsFn(builder, agg.subaggs)
if (agg.metadata.nonEmpty) builder.setMetaData(agg.metadata.asJava)
builder
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy