From f9da579651d291b8f2b71cb55c4385374d0dac7b Mon Sep 17 00:00:00 2001 From: wangszuyung Date: Fri, 15 Jun 2018 17:33:27 +0900 Subject: [PATCH] fix documentation test error --- .../client/documentation/IndicesClientDocumentationIT.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/rest-high-level/src/test/java/org/elasticsearch/client/documentation/IndicesClientDocumentationIT.java b/client/rest-high-level/src/test/java/org/elasticsearch/client/documentation/IndicesClientDocumentationIT.java index 6700cc5a9ee6f..b51326a229a64 100644 --- a/client/rest-high-level/src/test/java/org/elasticsearch/client/documentation/IndicesClientDocumentationIT.java +++ b/client/rest-high-level/src/test/java/org/elasticsearch/client/documentation/IndicesClientDocumentationIT.java @@ -2231,6 +2231,8 @@ public void onFailure(Exception e) { request.content(BytesReference.bytes(builder), XContentType.JSON); // <1> // end::put-stored-script-content-mustache + client.indices().putStoredScript(request, RequestOptions.DEFAULT); + Map script = getAsMap("/_scripts/id"); assertThat(extractValue("script.lang", script), equalTo("mustache")); assertThat(extractValue("script.source", script), equalTo("{\"query\":{\"match\":{\"title\":\"{{query_string}}\"}}}"));