You are looking at documentation for an older release.
Not what you want? See the
current release documentation.
Top Children Queryedit
QueryBuilders.topChildrenQuery(
"blog_tag", // field
QueryBuilders.termQuery("tag", "something") // Query
)
.score("max") // max, sum or avg
.factor(5)
.incrementalFactor(2);