diff --git a/lib/document.js b/lib/document.js index d371a8d..027c550 100644 --- a/lib/document.js +++ b/lib/document.js @@ -508,7 +508,8 @@ type: this.constructor.getDocumentType(), refresh: refresh, id: this.id, - version: this.version, + version: this.version + 1, + versionType: 'external', body: document }, (function(_this) { return function(error, response) { diff --git a/package.json b/package.json index e50709a..1f5bde3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "enju", - "version": "0.1.8", + "version": "0.1.9", "description": "An elasticsearch on node.js written in CoffeeScript.", "main": "index.js", "scripts": {