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 Queryedit
See 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