pyes icon indicating copy to clipboard operation
pyes copied to clipboard

Update does not work - 'meta' KeyError

Open ionut-rosoiu opened this issue 14 years ago • 0 comments

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:

ionut-rosoiu avatar Mar 08 '12 20:03 ionut-rosoiu