From a3a1795ab5ff183067f9c1c34d599fbc1521b8b4 Mon Sep 17 00:00:00 2001 From: Maarten-Jan <31125767+maartenjanvangool@users.noreply.github.com> Date: Mon, 4 Oct 2021 17:00:43 +0200 Subject: [PATCH] Update java-rest-high-level.md The file has a compile error, I think ); is missing --- _clients/java-rest-high-level.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_clients/java-rest-high-level.md b/_clients/java-rest-high-level.md index 892f7341..314725f4 100644 --- a/_clients/java-rest-high-level.md +++ b/_clients/java-rest-high-level.md @@ -93,7 +93,7 @@ public class RESTClientSample { HashMap mapping = new HashMap(); mapping.put("properties", ageMapping); createIndexRequest.mapping(mapping); - CreateIndexResponse createIndexResponse = client.indices().create(createIndexRequest, RequestOptions.DEFAULT + CreateIndexResponse createIndexResponse = client.indices().create(createIndexRequest, RequestOptions.DEFAULT); //Adding data to the index. IndexRequest request = new IndexRequest("custom-index"); //Add a document to the custom-index we created.