IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Custom Filters Score Query
edit
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.
Custom Filters Score Query
editSee Custom Filters Score Query
QueryBuilders.customFiltersScoreQuery(
QueryBuilders.matchAllQuery()) // Query
// Filters with their boost factors
.add(FilterBuilders.rangeFilter("age").from(0).to(10), 3)
.add(FilterBuilders.rangeFilter("age").from(10).to(20), 2)
.scoreMode("first"); // first, min, max, total, avg or multiply