Skip to content

Commit

Permalink
spotlessApply
Browse files Browse the repository at this point in the history
  • Loading branch information
jimczi committed Dec 8, 2023
1 parent ea4c43b commit 76a4f6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,7 @@ public void testCloseFreezeAndOpen() throws Exception {
String pitId = openReaders(TimeValue.timeValueMinutes(1), indexName);
try {
for (int from = 0; from < 3; from++) {
searchResponse = client().prepareSearch()
.setPointInTime(new PointInTimeBuilder(pitId))
.setSize(1)
.setFrom(from)
.get();
searchResponse = client().prepareSearch().setPointInTime(new PointInTimeBuilder(pitId)).setSize(1).setFrom(from).get();
assertHitCount(searchResponse, 3);
assertEquals(1, searchResponse.getHits().getHits().length);
SearchService searchService = getInstanceFromNode(SearchService.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ public static SearchRequest prepareRequest(SearchSourceBuilder source, SqlConfig
if (source.pointInTimeBuilder() == null) {
searchRequest.indices(indices);
searchRequest.indicesOptions(
includeFrozen ? IndexResolver.FIELD_CAPS_FROZEN_INDICES_OPTIONS : IndexResolver.FIELD_CAPS_INDICES_OPTIONS
includeFrozen ? IndexResolver.FIELD_CAPS_FROZEN_INDICES_OPTIONS : IndexResolver.FIELD_CAPS_INDICES_OPTIONS
);
}
searchRequest.source(source);
Expand Down

0 comments on commit 76a4f6c

Please sign in to comment.