def METHOD_NAME(self) -> None:
    """
    Use Elasticsearch Bulk API to load data from file to a {new_index}.
    After upload, swap alias from {old_index} to {new_index} in a atomic operation
    to route traffic to {new_index}
    """
    LOGGER.warn('ElasticsearchPublisher is being deprecated in favor of using SearchMetadatatoElasticasearchTask\
        which publishes ES metadata with mappings compatible with amundsensearch >= 4.0.0')
    actions = [json.loads(line) for line in self.file_handler.readlines()]
    # ensure new data exists
    if not actions:
        LOGGER.warning("received no data to upload to Elasticsearch!")
        return
    # Convert object to json for elasticsearch bulk upload
    # Bulk load JSON format is defined here:
    # https://www.elastic.co/guide/en/elasticsearch/reference/6.2/docs-bulk.html
    bulk_actions = []
    cnt = 0
    # create new index with mapping
    self.elasticsearch_client.indices.create(index=self.elasticsearch_new_index, body=self.elasticsearch_mapping)
    for action in actions:
        index_row = dict(index=dict(_index=self.elasticsearch_new_index))
        action['resource_type'] = self.elasticsearch_type
        bulk_actions.append(index_row)
        bulk_actions.append(action)
        cnt += 1
        if cnt == self.elasticsearch_batch_size:
            self.elasticsearch_client.bulk(bulk_actions)
            LOGGER.info('Publish %i of records to ES', cnt)
            cnt = 0
            bulk_actions = []
    # Do the final bulk actions
    if bulk_actions:
        self.elasticsearch_client.bulk(bulk_actions)
    # fetch indices that have {elasticsearch_alias} as alias
    elasticsearch_old_indices = self._fetch_old_index()
    # update alias to point to the new index
    actions = [{"add": {"index": self.elasticsearch_new_index, "alias": self.elasticsearch_alias}}]
    # delete old indices
    delete_actions = [{"remove_index": {"index": index}} for index in elasticsearch_old_indices]
    actions.extend(delete_actions)
    update_action = {"actions": actions}
    # perform alias update and index delete in single atomic operation
    self.elasticsearch_client.indices.update_aliases(update_action)