Skip to content

Commit de8ca18

Browse files
committed
Address PR comments
1 parent 27aaf3e commit de8ca18

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

client/rest-high-level/src/test/java/org/elasticsearch/client/documentation/IndicesClientDocumentationIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1684,7 +1684,7 @@ public void testShrinkIndex() throws Exception {
16841684
request.setWaitForActiveShards(ActiveShardCount.DEFAULT); // <2>
16851685
// end::shrink-index-request-waitForActiveShards
16861686
// tag::shrink-index-request-copySettings
1687-
request.setCopySettings(Boolean.TRUE); // <1>
1687+
request.setCopySettings(true); // <1>
16881688
// end::shrink-index-request-copySettings
16891689
// tag::shrink-index-request-settings
16901690
request.getTargetIndexRequest().settings(Settings.builder()

docs/java-rest/high-level/indices/shrink_index.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ returns a response, as an `ActiveShardCount`
5151
--------------------------------------------------
5252
include-tagged::{doc-tests-file}[{api}-request-copySettings]
5353
--------------------------------------------------
54-
<1> Use `Boolean.TRUE` to copy the settings from the source index to the target
55-
index. This cannot be `Boolean.FALSE`. If this method is not used, default behavior is not to copy.
54+
<1> Use `true` to copy the settings from the source index to the target
55+
index. This cannot be `false`. If this method is not used, default behavior is not to copy.
5656
This parameter will be removed in 8.0.0.
5757

5858
["source","java",subs="attributes,callouts,macros"]

0 commit comments

Comments
 (0)