aparo/pyes — Issue #165: Update does not work - 'meta' KeyError
Author: ionut-rosoiu
Created: 2012-03-08 20:02:14+00:00
State: open

This is because of this line in es.py:

1122: meta = new_doc.pop('meta')
1123: try:
1124: return self.index(new_doc, index, doc_type, id,
1125: version=meta.version, querystring_args=querystring_args)
1126: except VersionConflictEngineException:

This should be changed to:

1122:
1123: try:
1124: return self.index(new_doc, index, doc_type, id,
1125: version=current_doc._version, querystring_args=querystring_args)
1126: except VersionConflictEngineException: