scout/commands/index_command.py
def index(context, update):
    """Create indexes for the database"""
    LOG.info("Running scout index")
    adapter = context.obj['adapter']
    
    if update:
        adapter.update_indexes()
    else:
        adapter.load_indexes()
def index(context, update):
    LOG.info("Running scout index")
    adapter = context.obj['adapter']
    
    if update:
        adapter.update_indexes()
    else:
        adapter.load_indexes()
def index ( context , update ) : LOG . info ( "Running scout index" ) adapter = context . obj [ 'adapter' ] if update : adapter . update_indexes ( ) else : adapter . load_indexes ( )
Create indexes for the database
Create indexes for the database