Docs: IndexResponse.matches() does not exist anymore
Since 1.0, percolator has been redesigned so percolator is not applied anymore at index time. Closes #7548.
This commit is contained in:
parent
f6a0fe5c2f
commit
53c0e92801
|
@ -173,19 +173,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();
|
||||
--------------------------------------------------
|
||||
|
||||
If you use percolation while indexing, `IndexResponse` object will give
|
||||
you a percolator that have matched:
|
||||
|
||||
[source,java]
|
||||
--------------------------------------------------
|
||||
IndexResponse response = client.prepareIndex("twitter", "tweet", "1")
|
||||
.setSource(json)
|
||||
.execute()
|
||||
.actionGet();
|
||||
|
||||
List<String> matches = response.matches();
|
||||
// isCreated() is true if the document is a new one, false if it has been updated
|
||||
boolean created = response.isCreated();
|
||||
--------------------------------------------------
|
||||
|
||||
For more information on the index operation, check out the REST
|
||||
|
|
Loading…
Reference in New Issue