def add_doc_to_update(self, action, update_spec, action_buffer_index):
doc = {<EOL>"<STR_LIT>": action["<STR_LIT>"],<EOL>"<STR_LIT>": action["<STR_LIT>"],<EOL>"<STR_LIT>": action["<STR_LIT>"],<EOL>}<EOL>get_from_ES = self.should_get_id(action)<EOL>self.doc_to_update.append((doc, update_spec, action_buffer_index, get_from_ES))<EOL>
Prepare document for update based on Elasticsearch response.
Set flag if document needs to be retrieved from Elasticsearch