lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shalin Shekhar Mangar <shalinman...@gmail.com>
Subject Merging with writer open on source index?
Date Wed, 15 Jun 2011 11:38:07 GMT
Hello,

IndexWriter.addIndexes(Directory...) method says that the index in each
directory must not be changed (opened by a writer) while this method is
running. However, IndexWriter.addIndexes(IndexReader...) does not say any
such thing. Would I be correct in assuming that since an IndexReader has a
static snapshot of the index, merging using addIndexes(IndexReader...) is
safe even if the source index has a writer open?

-- 
Regards,
Shalin Shekhar Mangar.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message