Ejemplo n.º 1
0
def init():
    """Create or upgrade the search index and database."""
    upgrade_db()
    init_search()
    upgrade_search()
    install_analyzers()
    get_archive().upgrade()
Ejemplo n.º 2
0
def init():
    """Create or upgrade the search index and database."""
    upgrade_db()
    init_search()
    upgrade_search()
    install_analyzers()
    get_archive().upgrade()
Ejemplo n.º 3
0
def init(skip=''):
    """Create or upgrade the search index and database."""
    upgrade_db()
    init_search()
    upgrade_search()
    if 'analyzers' not in skip:
        install_analyzers()
    archive.upgrade()
Ejemplo n.º 4
0
    def setUp(self):
        if not hasattr(TestCase, '_global_test_state'):
            TestCase._global_test_state = True
            delete_index()
            upgrade_search()
        else:
            indexes = [collection_index(), entity_index(), record_index()]
            es.delete_by_query(index=indexes,
                               body={'query': {
                                   'match_all': {}
                               }},
                               refresh=True,
                               conflicts='proceed')

        destroy_db()
        db.create_all()
        create_system_roles()
Ejemplo n.º 5
0
def resetindex():
    """Re-create the ES index configuration, dropping all data."""
    delete_index()
    upgrade_search()
Ejemplo n.º 6
0
def upgrade():
    """Create or upgrade the search index and database."""
    upgrade_db()
    upgrade_search()
Ejemplo n.º 7
0
def upgrade():
    """Create or upgrade the search index and database."""
    upgrade_db()
    upgrade_search()
    upgrade_graph()
    get_archive().upgrade()
Ejemplo n.º 8
0
 def setUp(self):
     delete_index()
     upgrade_search()
     db.drop_all()
     db.create_all()
     create_system_roles()
Ejemplo n.º 9
0
def upgrade():
    """Create or upgrade the search index and database."""
    upgrade_db()
    upgrade_search()