Re: Is it safe to use reopen on IndexReader

2010-03-31 Thread Michael McCandless
sser wrote: > Is it safe to use reopen on IndexReader if their are other threads who had > readers out or do I need to use a ref counter to make sure all readers are > checked in? > > Secondly right now we also check this when we reopen > IndexReader ir = indexSearcher.getIndexReader

Is it safe to use reopen on IndexReader

2010-03-31 Thread Jason Tesser
Is it safe to use reopen on IndexReader if their are other threads who had readers out or do I need to use a ref counter to make sure all readers are checked in? Secondly right now we also check this when we reopen IndexReader ir = indexSearcher.getIndexReader(); indexSearcher