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. > > > > > >