def initindex(): """Delete all information from the elastic search Index.""" click.echo('Loading data into Elastic Search') elastic_index.clear() from app import data_loader data_loader = data_loader.DataLoader() data_loader.build_index()
def reset(): """Remove all data and recreate it from the example data files""" click.echo('Rebuilding the databases from the example data files') from app import data_loader data_loader = data_loader.DataLoader() data_loader.clear_index() data_loader.clear() _load_data(data_loader) data_loader.build_index()
def _loadindex(): """Load all information into the elastic search Index.""" click.echo('Loading data into Elastic Search') from app import data_loader data_loader = data_loader.DataLoader() data_loader.build_index()