You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by luocanrao <lu...@sohu.com> on 2010/03/22 14:46:20 UTC

答复: about lucene doc id recycle

Thanks,do you means that in any situation the docids maximum number maybe somewhere between current doc count and about 3 times doc count.
No more than 4 times doc count

-----邮件原件-----
发件人: Uwe Schindler [mailto:uwe@thetaphi.de] 
发送时间: 2010年3月22日 21:11
收件人: java-user@lucene.apache.org
主题: RE: about lucene doc id recycle

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: uwe@thetaphi.de


> -----Original Message-----
> From: Erick Erickson [mailto:erickerickson@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 <lu...@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-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org