Пример #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 index_data(name=app.config['ES_INDEX_NAME'], path=app.config['HM_EPUB_FILES']):
    """Index magazine data"""
    _index_data(name, path)
Пример #4
0
def index_data(name=app.config['ES_INDEX_NAME'],
               path=app.config['HM_EPUB_FILES']):
    """Index magazine data"""
    _index_data(name, path)