You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Jason Rutherglen <ja...@gmail.com> on 2010/01/07 20:09:04 UTC
Re: IndexWriter.getReader() for existing index content
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...@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-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org