def should_get_id(self, action):
mapping_ids = self.doc_to_get.setdefault(action["<STR_LIT>"], {}).setdefault(<EOL>action["<STR_LIT>"], set()<EOL>)<EOL>if action["<STR_LIT>"] in mapping_ids:<EOL><INDENT>return False<EOL><DEDENT>else:<EOL><INDENT>mapping_ids.add(action["<STR_LIT>"])<EOL>return True<EOL><DEDENT>
Mark document to retrieve its source from Elasticsearch.
Returns:
    True - if marking document for the first time in this bulk
    False - if document has been already marked