From a0b319a1238d46ca646f9d118482ddeeb511aeba Mon Sep 17 00:00:00 2001 From: Tal Levy Date: Tue, 27 Nov 2018 14:28:25 -0800 Subject: [PATCH] [DOCS] fix HLRC ILM doc misreferenced tag --- .../documentation/ILMDocumentationIT.java | 22 +++++++++---------- ...emove_lifecycle_policy_from_index.asciidoc | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/client/rest-high-level/src/test/java/org/elasticsearch/client/documentation/ILMDocumentationIT.java b/client/rest-high-level/src/test/java/org/elasticsearch/client/documentation/ILMDocumentationIT.java index f8e3c62ef71..bde59194a2e 100644 --- a/client/rest-high-level/src/test/java/org/elasticsearch/client/documentation/ILMDocumentationIT.java +++ b/client/rest-high-level/src/test/java/org/elasticsearch/client/documentation/ILMDocumentationIT.java @@ -168,19 +168,19 @@ public class ILMDocumentationIT extends ESRestHighLevelClientTestCase { assertTrue(putResponse.isAcknowledged()); } - // tag::ilm-remove-lifecycle-policy-request + // tag::ilm-delete-lifecycle-policy-request DeleteLifecyclePolicyRequest request = new DeleteLifecyclePolicyRequest("my_policy"); // <1> - // end::ilm-remove-lifecycle-policy-request + // end::ilm-delete-lifecycle-policy-request - // tag::ilm-remove-lifecycle-policy-execute + // tag::ilm-delete-lifecycle-policy-execute AcknowledgedResponse response = client.indexLifecycle() .deleteLifecyclePolicy(request, RequestOptions.DEFAULT); - // end::ilm-remove-lifecycle-policy-execute + // end::ilm-delete-lifecycle-policy-execute - // tag::ilm-remove-lifecycle-policy-response + // tag::ilm-delete-lifecycle-policy-response boolean acknowledged = response.isAcknowledged(); // <1> - // end::ilm-remove-lifecycle-policy-response + // end::ilm-delete-lifecycle-policy-response assertTrue(acknowledged); @@ -191,7 +191,7 @@ public class ILMDocumentationIT extends ESRestHighLevelClientTestCase { assertTrue(putResponse.isAcknowledged()); } - // tag::ilm-remove-lifecycle-policy-execute-listener + // tag::ilm-delete-lifecycle-policy-execute-listener ActionListener listener = new ActionListener() { @Override @@ -204,16 +204,16 @@ public class ILMDocumentationIT extends ESRestHighLevelClientTestCase { // <2> } }; - // end::ilm-remove-lifecycle-policy-execute-listener + // end::ilm-delete-lifecycle-policy-execute-listener // Replace the empty listener by a blocking listener in test final CountDownLatch latch = new CountDownLatch(1); listener = new LatchedActionListener<>(listener, latch); - // tag::ilm-remove-lifecycle-policy-execute-async + // tag::ilm-delete-lifecycle-policy-execute-async client.indexLifecycle().deleteLifecyclePolicyAsync(request, RequestOptions.DEFAULT, listener); // <1> - // end::ilm-remove-lifecycle-policy-execute-async + // end::ilm-delete-lifecycle-policy-execute-async assertTrue(latch.await(30L, TimeUnit.SECONDS)); } @@ -648,7 +648,7 @@ public class ILMDocumentationIT extends ESRestHighLevelClientTestCase { assertTrue(latch.await(30L, TimeUnit.SECONDS)); } - public void testDeletePolicyFromIndex() throws Exception { + public void testRemovePolicyFromIndex() throws Exception { RestHighLevelClient client = highLevelClient(); // setup policy for index diff --git a/docs/java-rest/high-level/ilm/remove_lifecycle_policy_from_index.asciidoc b/docs/java-rest/high-level/ilm/remove_lifecycle_policy_from_index.asciidoc index ae1521e8fb2..96c6b0be1b1 100644 --- a/docs/java-rest/high-level/ilm/remove_lifecycle_policy_from_index.asciidoc +++ b/docs/java-rest/high-level/ilm/remove_lifecycle_policy_from_index.asciidoc @@ -1,6 +1,6 @@ -- :api: ilm-remove-lifecycle-policy-from-index -:request: +:request: RemoveIndexLifecyclePolicyRequest :response: AcknowledgedResponse --