(dirname, schema, indexname=None)
return FileIndex.create(storage, schema, indexname)
Convenience function to create an index in a directory. Takes care of
    creating a FileStorage object for you.

    :param dirname: the path string of the directory in which to create the
        index.
    :param schema: a :class:`whoosh.fields.Schema` object describing the
        index's fields.
    :param indexname: the name of the index to create; you only need to specify
        this if you are creating multiple indexes within the same storage
        object.
    :returns: :class:`Index`
Convenience function to create an index in a directory. Takes care of
    creating a FileStorage object for you.
Convenience function to create an index in a directory . Takes care of creating a FileStorage object for you .
def create_in(dirname, schema, indexname=None):
    """Convenience function to create an index in a directory. Takes care of
    creating a FileStorage object for you.

    :param dirname: the path string of the directory in which to create the
        index.
    :param schema: a :class:`whoosh.fields.Schema` object describing the
        index's fields.
    :param indexname: the name of the index to create; you only need to specify
        this if you are creating multiple indexes within the same storage
        object.
    :returns: :class:`Index`
    """

    from whoosh.filedb.filestore import FileStorage

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