def should_get_id(self, action):
mapping_ids = self.doc_to_get.setdefault(<EOL>action['<STR_LIT>'], {}).setdefault(action['<STR_LIT>'], set())<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