Removed test statement and removed es_client.indices.close_index('distreet')