(dirname, indexname=None, readonly=False, schema=None)
return FileIndex(storage, schema=schema, indexname=indexname)
Convenience function for opening an index in a directory. Takes care of
    creating a FileStorage object for you. dirname is the filename of the
    directory in containing the index. indexname is the name of the index to
    create; you only need to specify this if you have multiple indexes within
    the same storage object.

    :param dirname: the path string of the directory in which to create the
        index.
    :param indexname: the name of the index to create; you only need to specify
        this if you have multiple indexes within the same storage object.
Convenience function for opening an index in a directory. Takes care of
    creating a FileStorage object for you. dirname is the filename of the
    directory in containing the index. indexname is the name of the index to
    create; you only need to specify this if you have multiple indexes within
    the same storage object.
Convenience function for opening an index in a directory . Takes care of creating a FileStorage object for you . dirname is the filename of the directory in containing the index . indexname is the name of the index to create ; you only need to specify this if you have multiple indexes within the same storage object .
def open_dir(dirname, indexname=None, readonly=False, schema=None):
    """Convenience function for opening an index in a directory. Takes care of
    creating a FileStorage object for you. dirname is the filename of the
    directory in containing the index. indexname is the name of the index to
    create; you only need to specify this if you have multiple indexes within
    the same storage object.

    :param dirname: the path string of the directory in which to create the
        index.
    :param indexname: the name of the index to create; you only need to specify
        this if you have multiple indexes within the same storage object.
    """

    from whoosh.filedb.filestore import FileStorage

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