Thanks Michael for the clarification!

-John

On Sun, Dec 27, 2009 at 4:11 AM, Michael McCandless <
luc...@mikemccandless.com> wrote:

> 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 <john.w...@gmail.com> wrote:
> > 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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org
> For additional commands, e-mail: java-dev-h...@lucene.apache.org
>
>

Reply via email to