def reindex_data(name=app.config['ES_INDEX_NAME'], path=app.config['HM_EPUB_FILES']): """Query index for data""" _delete_index(name) _create_index(name) _index_data(name, path)
def create_index(name=app.config['ES_INDEX_NAME']): """Create an elastic search index""" _create_index(name)