Re: About IndexReader.reopen with very similar indexes

2011-06-21 Thread Michael McCandless
Reopening is based entirely on the latest segments_N file present in the index. Lucene loads that file and checks if it refers to any new segments not already open and if so opens those new ones. And segments in common with what the reader already has open (ie same segment name) are simply reused

About IndexReader.reopen with very similar indexes

2011-06-21 Thread Marc Sturlese
Hey there, I have a doubt about the behaviour of IndexReader.reopen. I have a tomcat server holding a lucene index over an IndexSearcher. If I move the index.folder to index.folder.old and another index, let's say index.folder.2 to index.folder and then I reopen readers, something weird happen if