def get_docs_sources_from_ES(self):
docs = [doc for doc, _, _, get_from_ES in self.doc_to_update if get_from_ES]<EOL>if docs:<EOL><INDENT>documents = self.docman.elastic.mget(body={"<STR_LIT>": docs}, realtime=True)<EOL>return iter(documents["<STR_LIT>"])<EOL><DEDENT>else:<EOL><INDENT>return iter([])<EOL><DEDENT>
Get document sources using MGET elasticsearch API