Skip to content

Commit 80f8dfe

Browse files
Rui Hunik9000
authored andcommitted
Fixed document mistake and fit for 5.1.1 API
1 parent 7141f6b commit 80f8dfe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/java-api/docs/index_.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ String _type = response.getType();
156156
String _id = response.getId();
157157
// Version (if it's the first time you index this document, you will get: 1)
158158
long _version = response.getVersion();
159-
// isCreated() is true if the document is a new one, false if it has been updated
160-
boolean created = response.isCreated();
159+
// status has stored current instance statement.
160+
RestStatus status = response.status();
161161
--------------------------------------------------
162162

163163
For more information on the index operation, check out the REST

0 commit comments

Comments
 (0)