Skip to content

Commit

Permalink
spotless apply
Browse files Browse the repository at this point in the history
  • Loading branch information
jimczi committed Apr 24, 2024
1 parent 44370b6 commit a3d850d
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -928,8 +928,8 @@ public void testRescoreAfterCollapseRandom() throws Exception {
var groupDoc = new GroupDoc(id, Integer.toString(group), firstPassScore, secondPassScore, shouldFilter);
if (shouldFilter == false) {
if (firstPassScore == bestScore) {
// avoid tiebreaker
continue;
// avoid tiebreaker
continue;
}

numHits++;
Expand Down Expand Up @@ -962,9 +962,7 @@ public void testRescoreAfterCollapseRandom() throws Exception {

var request = client().prepareSearch("test")
.setQuery(fieldValueScoreQuery("firstPassScore"))
.addRescorer(new QueryRescorerBuilder(fieldValueScoreQuery("secondPassScore"))
.setQueryWeight(0f)
.windowSize(numGroups))
.addRescorer(new QueryRescorerBuilder(fieldValueScoreQuery("secondPassScore")).setQueryWeight(0f).windowSize(numGroups))
.setCollapse(new CollapseBuilder("group"))
.setSize(Math.min(numGroups, 10));
long expectedNumHits = numHits;
Expand Down

0 comments on commit a3d850d

Please sign in to comment.