Skip to content

Commit

Permalink
Adapt it tests that set the indices explicitely in a pit search request
Browse files Browse the repository at this point in the history
  • Loading branch information
jimczi committed Dec 11, 2023
1 parent 13d5cee commit c5ea8a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ public void testScrollAndSearchAfterWithBigIndex() {
{
OpenPointInTimeRequest openPITRequest = new OpenPointInTimeRequest("test").keepAlive(TimeValue.timeValueMinutes(5));
pitID = client().execute(TransportOpenPointInTimeAction.TYPE, openPITRequest).actionGet().getPointInTimeId();
SearchRequest searchRequest = new SearchRequest("test").source(
SearchRequest searchRequest = new SearchRequest().source(
new SearchSourceBuilder().pointInTimeBuilder(new PointInTimeBuilder(pitID).setKeepAlive(TimeValue.timeValueMinutes(5)))
.sort(SortBuilders.pitTiebreaker())
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,7 @@ public void testRetryPointInTime() throws Exception {
ensureGreen(indexName);

assertNoFailuresAndResponse(
prepareSearch()
.setQuery(new RangeQueryBuilder("created_date").gte("2011-01-01").lte("2011-12-12"))
prepareSearch().setQuery(new RangeQueryBuilder("created_date").gte("2011-01-01").lte("2011-12-12"))
.setSearchType(SearchType.QUERY_THEN_FETCH)
.setPreference(null)
.setPreFilterShardSize(between(1, 10))
Expand Down

0 comments on commit c5ea8a1

Please sign in to comment.