[DOCS] Java API JSON typo

This commit is contained in:
Binh Ly 2014-02-26 14:01:59 -05:00
parent 0230ecbeac
commit 612e95a321
1 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ dates regarding to the
String json = "{" + String json = "{" +
"\"user\":\"kimchy\"," + "\"user\":\"kimchy\"," +
"\"postDate\":\"2013-01-30\"," + "\"postDate\":\"2013-01-30\"," +
"\"message\":\"trying out Elasticsearch\"," + "\"message\":\"trying out Elasticsearch\"" +
"}"; "}";
-------------------------------------------------- --------------------------------------------------
@ -152,7 +152,7 @@ don't have to give an ID:
String json = "{" + String json = "{" +
"\"user\":\"kimchy\"," + "\"user\":\"kimchy\"," +
"\"postDate\":\"2013-01-30\"," + "\"postDate\":\"2013-01-30\"," +
"\"message\":\"trying out Elasticsearch\"," + "\"message\":\"trying out Elasticsearch\"" +
"}"; "}";
IndexResponse response = client.prepareIndex("twitter", "tweet") IndexResponse response = client.prepareIndex("twitter", "tweet")