def METHOD_NAME(self):
    """Collect all the documentation files and makes a request to the BULK API to index the new data."""
    if self.test_connection():
        files = self.get_files()
        self.read_files_content(files)
        try:
            if self.es.count(index=self.index):
                self.remove_index()
        except Exception:
            pass
        IndexData.LOGGER.info("Indexing data")
        helpers.bulk(self.es, self.output, index=self.index)
        out = json.dumps(self.es.cluster.health(wait_for_status='yellow', request_timeout=1), indent=4)
        IndexData.LOGGER.debug(out)
        IndexData.LOGGER.info("The data have been successfully indexed")