예제 #1
0
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)
예제 #2
0
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)
예제 #3
0
def delete_index(name=app.config['ES_INDEX_NAME']):
    """Create an elastic search index"""
    _delete_index(name)
예제 #4
0
def delete_index(name=app.config['ES_INDEX_NAME']):
    """Create an elastic search index"""
    _delete_index(name)