def open_dir(dirname, indexname=None, mapped=True, readonly=False):
 if (indexname is None):
  indexname = _DEF_INDEX_NAME
 from whoosh.filedb.filestore import FileStorage
 storage = FileStorage(dirname, mapped=mapped, readonly=readonly)
 return storage.open_index(indexname)

def open_dir ( dirname , indexname = None , mapped = True , readonly = False ) : if ( indexname is None ) : indexname = _DEF_INDEX_NAME from whoosh . filedb . filestore import FileStorage storage = FileStorage ( dirname , mapped = mapped , readonly = readonly ) return storage . open_index ( indexname )
convenience function for opening an index in a directory .