It's confusing... but it is in fact safe not closing it (for Lucene's
core IndexReader impls) -- because the IndexInputs that
SegmentTermDocs/Positions use are clones, their close methods are a
no-op.
Mike
On Sun, Dec 27, 2009 at 6:37 AM, John Wang wrote:
> Hi:
> I see Te
Hi:
I see TermDocs.close not being called when created with TermQuery:
TermQuery creates it and passes to TermScorer, and is never closed.
I see TermDocs.close actually closes the input stream.
Is it safe not closing TermDocs?
Thanks
-John