Skip to content

Commit

Permalink
iter
Browse files Browse the repository at this point in the history
  • Loading branch information
cbuescher committed Nov 28, 2024
1 parent 8f9e02d commit 313b682
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,8 @@ public void setupIndex() throws IOException {
createRestoreRequest.setJsonEntity("{\"indices\":\"" + indices.stream().collect(Collectors.joining(",")) + "\"}");
createRestoreRequest.setOptions(RequestOptions.DEFAULT.toBuilder().setWarningsHandler(WarningsHandler.PERMISSIVE));
Response response = client().performRequest(createRestoreRequest);
String warningHeader = response.getHeader("Warning");
assertThat(warningHeader, containsString("""
Disabling _field_names is not necessary because it no longer carries a large index overhead."""));
// check deprecation warning for "_field_name" disabling
assertTrue(response.getWarnings().stream().filter(s -> s.contains("Disabling _field_names is not necessary")).count() > 0);
assertOK(response);
}

Expand Down

0 comments on commit 313b682

Please sign in to comment.