You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Aad Nales <aa...@rotterdam-cs.com> on 2004/10/06 14:15:56 UTC

what happen with an 'open' IndexSearcher when the index files are 'changed'.

Hi All,

Based on some recent comments that open IndexSearchers should be cached
I am implementing an IndexSearcherPool based on the pool implementation
in the jakarta.commons.

My question is this:

When I run a full reindex, i build a new temporary index and once it is
done I move it to where the previous location was. This seems pretty
much standard. My question is is what happens with an IndexSearcher
when:

1. it has been created with an File() object to the old index. It
searches a few times but does not close. The reindex occurs and the new
index comes to live? Do they crash when the next query is fired?

2. the same but now during a search?

Thanks for any insights,
Aad


--
Aad Nales
aad.nales@rotterdam-cs.com, +31-(0)6 54 207 340 



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