Browse Source

[DOCS] Update index docs to match changes in IndexResponse class

IndexResponse.id() ->  IndexResponse.getId()
stephlag 11 years ago
parent
commit
a10bedfa96
1 changed files with 4 additions and 4 deletions
  1. 4 4
      docs/java-api/index_.asciidoc

+ 4 - 4
docs/java-api/index_.asciidoc

@@ -166,13 +166,13 @@ IndexResponse response = client.prepareIndex("twitter", "tweet")
 [source,java]
 [source,java]
 --------------------------------------------------
 --------------------------------------------------
 // Index name
 // Index name
-String _index = response.index();
+String _index = response.getIndex();
 // Type name
 // Type name
-String _type = response.type();
+String _type = response.getType();
 // Document ID (generated or not)
 // Document ID (generated or not)
-String _id = response.id();
+String _id = response.getId();
 // Version (if it's the first time you index this document, you will get: 1)
 // Version (if it's the first time you index this document, you will get: 1)
-long _version = response.version();
+long _version = response.getVersion();
 --------------------------------------------------
 --------------------------------------------------
 
 
 If you use percolation while indexing, `IndexResponse` object will give
 If you use percolation while indexing, `IndexResponse` object will give