() for existing index content
Hmm, IW.getReader normally does include the existing index.
Ie, if you open an IndexWriter with "create=false" on an existing
index, and then call getReader(), the returned reader will search that
full index. Is this not what you're seeing?
Mike
On T
Hmm, IW.getReader normally does include the existing index.
Ie, if you open an IndexWriter with "create=false" on an existing
index, and then call getReader(), the returned reader will search that
full index. Is this not what you're seeing?
Mike
On Thu, Jan 7, 2010 at 1:58 PM, An Hong wrote:
>
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 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 i
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 a