: I figured it might be less expensive if search() (I have extended
: IndexSearcher) were to check that the underlying IndexReader is still

if you're extending IndexSearcher anyway you can override the close()
method to update a boolean and then add your own isClosed() method.

: open - and reopen() if necessary. However, I cannot find a way to

FWIW: I don't believe you can call the reopen() method on a close
IndexReader ... but you can of course "re" open a new IndexReader

: detect this ... is there a way? Failing that, what is the cost of just
: issuing a reopen() anyway?

if the index hasn't changed, it's free. If the index has changed
a lot, it's as expensive as open() ... if there are minor changes then
it's somewhere in between.


To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org

Search Discussions

Discussion Posts


Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 2 | next ›
Discussion Overview
groupjava-user @
postedOct 1, '09 at 12:53p
activeOct 6, '09 at 7:00p

2 users in discussion

Chris Bamford: 1 post Chris Hostetter: 1 post



site design / logo © 2022 Grokbase