code | type | title | description |
---|---|---|---|
true |
page |
replaceDocument |
Collection:replaceDocument |
Replace an existing document and return the updated version as a Document object.
Arguments | Type | Description |
---|---|---|
documentId |
string | Unique document identifier |
content |
JSON Object | Content of the document to create |
options |
JSON Object | Optional parameters |
callback |
function | Optional callback |
Option | Type | Description | Default |
---|---|---|---|
volatile |
JSON Object | Additional information passed to notifications to other users | null |
queuable |
boolean | Make this request queuable or not | true |
refresh |
string | If set to wait_for , Kuzzle will wait for the persistence layer to finish indexing (available with Elasticsearch 5.x and above) |
undefined |
Returns the Collection
object to allow chaining.
Returns an updated Document object.
<<< ./snippets/replace-document-1.java