def create_in(dirname, schema, indexname=None):
 if (not indexname):
  indexname = _DEF_INDEX_NAME
 from whoosh.filedb.filestore import FileStorage
 storage = FileStorage(dirname)
 return storage.create_index(schema, indexname)

def create_in ( dirname , schema , indexname = None ) : if ( not indexname ) : indexname = _DEF_INDEX_NAME from whoosh . filedb . filestore import FileStorage storage = FileStorage ( dirname ) return storage . create_index ( schema , indexname )
convenience function to create an index in a directory .