From 80f8dfe852ceaa012433b8e46c33f75fd1efe507 Mon Sep 17 00:00:00 2001 From: Rui Hu Date: Wed, 21 Dec 2016 02:22:10 -0500 Subject: [PATCH] Fixed document mistake and fit for 5.1.1 API --- docs/java-api/docs/index_.asciidoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/java-api/docs/index_.asciidoc b/docs/java-api/docs/index_.asciidoc index 1e48fbd431c..0b91622dd81 100644 --- a/docs/java-api/docs/index_.asciidoc +++ b/docs/java-api/docs/index_.asciidoc @@ -156,8 +156,8 @@ String _type = response.getType(); String _id = response.getId(); // Version (if it's the first time you index this document, you will get: 1) long _version = response.getVersion(); -// isCreated() is true if the document is a new one, false if it has been updated -boolean created = response.isCreated(); +// status has stored current instance statement. +RestStatus status = response.status(); -------------------------------------------------- For more information on the index operation, check out the REST