It works!

-----
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: [email protected]


> -----Original Message-----
> From: Ian Lea [mailto:[email protected]]
> Sent: Thursday, February 14, 2013 3:11 PM
> To: [email protected]
> Subject: Re: IndexReader.reopen() If Index Has Been Rebuilt
> 
> I've never tried reopen() on a completely new index, but if it works, it 
> works.
> Try it. I'm not aware of any documentation explicitly mentioning this.
> 
> The benefit of using reopen() rather than close/open is that if only some
> segments have changed the reopen is less costly.  For a brand new index
> everything will have changed so I guess you won't save anything over a
> standard close/open.
> 
> 
> --
> Ian.
> 
> 
> On Wed, Feb 13, 2013 at 6:28 PM, Wendy Meadows <[email protected]>
> wrote:
> > We're using Lucene 3.3.0 and have an index with close to 10 million
> > documents.  When the application is started and the first search is
> > performed, we open a read only IndexReader by calling
> > IndexReader.open(directoryString, true).  For all following searches,
> > we check if the indexReader is current and if not, call
> IndexReader.reopen().
> >  What happens if we rebuild the index from scratch while using the
> > same IndexReader and only refreshing it by calling reopen?  I can't
> > seem to find any solid documentation explaining this, but have read a
> > few things that are giving me the impression that this may not be the
> > best approach.  Can someone at least point me to some documentation
> regarding this?
> >
> > Thank you!
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to