Skip to content

Commit

Permalink
[Docs] Update method setSource(byte[] source) (#26561)
Browse files Browse the repository at this point in the history
The method setSource(byte[]) from the type IndexRequestBuilder is deprecated, use the method setSource(byte[] source, XContentType xContentType).

* add a whitespace after the comma

add a whitespace after the comma for better readability.
  • Loading branch information
jiangzhuolin authored and cbuescher committed Sep 11, 2017
1 parent 8547d0b commit f445683
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/java-api/docs/index_.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ String json = "{" +
"}";
IndexResponse response = client.prepareIndex("twitter", "tweet")
.setSource(json)
      .setSource(json, XContentType.JSON)
.get();
--------------------------------------------------

Expand Down

0 comments on commit f445683

Please sign in to comment.