def fromtextindex(index_or_dirname, indexname=None, docnum_field=None):

    return TextIndexView(index_or_dirname, indexname=indexname,
                         docnum_field=docnum_field)
Extract all documents from a Whoosh index. E.g.::
dataset/ETHPy150Open alimanfoo/petl/petl/io/whoosh.py/fromtextindex