pyes
pyes copied to clipboard
Update does not work - 'meta' KeyError
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: