def index_all(self, index_name):
oks = <NUM_LIT:0><EOL>notoks = <NUM_LIT:0><EOL>for ok, item in streaming_bulk(<EOL>self.es_client,<EOL>self._iter_documents(index_name)<EOL>):<EOL><INDENT>if ok:<EOL><INDENT>oks += <NUM_LIT:1><EOL><DEDENT>else:<EOL><INDENT>notoks += <NUM_LIT:1><EOL><DEDENT><DEDENT>logging.info(<EOL>"<STR_LIT>",<EOL>oks,<EOL>notoks<EOL>)<EOL>
Index all available documents, using streaming_bulk for speed
        Args:

        index_name (string): The index