Andi s you not optimize, as soon as two segments are merged, the docids are also reassigned. It just takes some time. Normally the docids maximum number maybe somewhere between current doc count and about 3 times doc count.
----- Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: u...@thetaphi.de > -----Original Message----- > From: Erick Erickson [mailto:erickerick...@gmail.com] > Sent: Monday, March 22, 2010 2:05 PM > To: java-user@lucene.apache.org > Subject: Re: about lucene doc id recycle > > Yes, when you call optimize, one side effect is that all the doc IDs > are > reassigned > so they're contiguous...... > > HTH > Erick > > On Mon, Mar 22, 2010 at 8:22 AM, luocanrao <luocan19826...@sohu.com> > wrote: > > > Total document number is not very big, but update is very frequency. > > > > So I wonder whether the doc id is growing bigger and bigger and never > > getting smaller. > > > > Do lucene has some technique recycling doc id?? > > > > > > > > Ps: I never call optimize method. > > > > > > > > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org