Whoosh - accessing search_page result items throws ReaderClosed exception
问题 Following is a simple pagination function. from whoosh import index def _search(q): wix = index.open_dir(settings.WHOOSH_INDEX_DIR) term = Term("title", q) | Term("content", q) page_id = 1 with wix.searcher() as s: return s.search_page(term, page_id, pagelen=settings.ITEMS_PER_PAGE) In [15]: p = _search("like") In [16]: p.results[0].reader.is_closed Out[16]: True if I try to access an attribute of a Hit, i get ReaderClosed exception. In [19]: p.results Out[19]: <Top 10 Results for Or([Term(