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 index_data(name=app.config['ES_INDEX_NAME'], path=app.config['HM_EPUB_FILES']): """Index magazine data""" _index_data(name, path)