Esempio n. 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)
Esempio n. 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)
Esempio n. 3
0
def create_index(name=app.config['ES_INDEX_NAME']):
    """Create an elastic search index"""
    _create_index(name)
Esempio n. 4
0
def create_index(name=app.config['ES_INDEX_NAME']):
    """Create an elastic search index"""
    _create_index(name)