Update java-rest-high-level.md
The file has a compile error, I think ); is missing
This commit is contained in:
parent
1f90f3ca52
commit
a3a1795ab5
|
@ -93,7 +93,7 @@ public class RESTClientSample {
|
||||||
HashMap<String, Object> mapping = new HashMap<String, Object>();
|
HashMap<String, Object> mapping = new HashMap<String, Object>();
|
||||||
mapping.put("properties", ageMapping);
|
mapping.put("properties", ageMapping);
|
||||||
createIndexRequest.mapping(mapping);
|
createIndexRequest.mapping(mapping);
|
||||||
CreateIndexResponse createIndexResponse = client.indices().create(createIndexRequest, RequestOptions.DEFAULT
|
CreateIndexResponse createIndexResponse = client.indices().create(createIndexRequest, RequestOptions.DEFAULT);
|
||||||
|
|
||||||
//Adding data to the index.
|
//Adding data to the index.
|
||||||
IndexRequest request = new IndexRequest("custom-index"); //Add a document to the custom-index we created.
|
IndexRequest request = new IndexRequest("custom-index"); //Add a document to the custom-index we created.
|
||||||
|
|
Loading…
Reference in New Issue