RE: IndexWriter.getReader() for existing index content

2010-01-07 Thread An Hong
() 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

Re: IndexWriter.getReader() for existing index content

2010-01-07 Thread Michael McCandless
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: >

Re: IndexWriter.getReader() for existing index content

2010-01-07 Thread Jason Rutherglen
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