Quick addition. Even if you commit/close your indexwriter, you
*still* won't see the changes in your search unless you repoen the
indexreader. But you have to do both (in the order above) to
see all the changes you've added via your indexwriter.....

but there's no reason to hold off on committing changes in
your indexwriter for a long time and risk losing the changes
should your program abort.....

HTH
Erick

On Sat, Dec 12, 2009 at 9:08 AM, Weiwei Wang <[email protected]> wrote:

> Gotcha, tThanks, Uwe
>
> 2009/12/12 Uwe Schindler <[email protected]>
>
> > No. As long as you not commit or close the IndexWriter and reopen the
> > IndexReader on the search side, nothing happens on the search side.
> >
> > Copying like you do is absolutely not needed.
> >
> > -----
> > Uwe Schindler
> > H.-H.-Meier-Allee 63, D-28213 Bremen
> > http://www.thetaphi.de
> > eMail: [email protected]
> >
> > > -----Original Message-----
> > > From: Weiwei Wang [mailto:[email protected]]
> > > Sent: Saturday, December 12, 2009 1:25 PM
> > > To: [email protected]
> > > Subject: Index Update
> > >
> > > Hi, all,
> > >      I need to update my index everyday so as to keep pace with times.
> > > Current I have two copy of indexes, one is used to provide search
> > service,
> > > the other is used to do updating. Once the updating process is done, I
> > > write
> > > all the updated documents to the index which provide search service.
> > >
> > > I want to use only one copy of index,  and do updating searching on the
> > > same
> > > index? Does the updating process will effect the search result when the
> > > updating process is running?
> > >
> > > --
> > > Weiwei Wang
> > > Alex Wang
> > > 王巍巍
> > > Room 403, Mengmin Wei Building
> > > Computer Science Department
> > > Gulou Campus of Nanjing University
> > > Nanjing, P.R.China, 210093
> > >
> > > Homepage: http://cs.nju.edu.cn/rl/weiweiwang
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
> >
>
>
> --
> Weiwei Wang
> Alex Wang
> 王巍巍
> Room 403, Mengmin Wei Building
> Computer Science Department
> Gulou Campus of Nanjing University
> Nanjing, P.R.China, 210093
>
> Homepage: http://cs.nju.edu.cn/rl/weiweiwang
>

Reply via email to