An, You're trying to add indexes and get a reader in a single call to IW?
Jason On Thu, Jan 7, 2010 at 10:58 AM, An Hong <an.h...@i365.com> wrote: > I’ve a requirement that when creating an IndexWriter on an existing index, I > need its getReader() to see the existing content. I’ve modified getReader() > to on its first call to invoke a modified version of addIndexesNoOptimized() > that does not check for dupDirs. It seems to work. Subsequent > addDocument() calls and reopen() of the reader also seem to work correctly. > This is with 2.9.1. > > > > I wonder if there’s a problem with what I’m doing, or if there’s a better > way? > > Thanks, > > An Hong > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org For additional commands, e-mail: java-dev-h...@lucene.apache.org