You are looking at documentation for an older release.
Not what you want? See the
current release documentation.
Boosting Queryedit
See Boosting Query
QueryBuilders.boostingQuery()
.positive(QueryBuilders.termQuery("name","kimchy"))
.negative(QueryBuilders.termQuery("name","dadoonet"))
.negativeBoost(0.2f);