Skip to content

Commit c9bdb0c

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent a7b7907 commit c9bdb0c

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

server/src/main/java/org/elasticsearch/search/retriever/RankDocsRetrieverBuilder.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,7 @@ public void extractToSearchSourceBuilder(SearchSourceBuilder searchSourceBuilder
109109
boolean trackTotalHitsDespiteMinScore = (hasAggregations(searchSourceBuilder)
110110
|| isExplainRequest(searchSourceBuilder)
111111
|| isProfileRequest(searchSourceBuilder)
112-
|| shouldTrackTotalHits(searchSourceBuilder))
113-
&& (sourceHasMinScore() == false);
112+
|| shouldTrackTotalHits(searchSourceBuilder)) && (sourceHasMinScore() == false);
114113

115114
if (trackTotalHitsDespiteMinScore) {
116115
if (false == isExplainRequest(searchSourceBuilder)) {

x-pack/plugin/rank-rrf/src/internalClusterTest/java/org/elasticsearch/xpack/rank/linear/LinearRetrieverIT.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,7 @@ public void cleanup() {
9898
client().execute(TransportClosePointInTimeAction.TYPE, new ClosePointInTimeRequest(pitId)).actionGet(30, TimeUnit.SECONDS);
9999
pitId = null;
100100
Thread.sleep(100);
101-
} catch (Exception e) {
102-
}
101+
} catch (Exception e) {}
103102
}
104103
}
105104

@@ -918,7 +917,8 @@ public void testLinearWithMinScore() {
918917
// Asserting on hits.length verifies the retriever's minScore correctly filtered the returned hits.
919918
// assertNotNull(resp.getHits().getTotalHits()); // getTotalHits() might still be non-null
920919
// assertThat(resp.getHits().getTotalHits().value(), equalTo(1L)); // This assertion is incorrect based on expected behavior
921-
// assertThat(resp.getHits().getTotalHits().relation(), equalTo(TotalHits.Relation.EQUAL_TO)); // Relation also reflects pre-filtering count
920+
// assertThat(resp.getHits().getTotalHits().relation(), equalTo(TotalHits.Relation.EQUAL_TO)); // Relation also reflects
921+
// pre-filtering count
922922
assertThat(resp.getHits().getHits().length, equalTo(1)); // Verify actual returned hits count
923923
assertThat(resp.getHits().getAt(0).getId(), equalTo("doc_2"));
924924
assertThat((double) resp.getHits().getAt(0).getScore(), closeTo(30.0f, 0.001f));

0 commit comments

Comments
 (0)