lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <>
Subject Re: Will doc ids ever change if nothing is deleted?
Date Fri, 14 May 2010 01:51:42 GMT
Why do you care? That is, what do you want to accomplish
that makes document ID renumbering relevant?

In general, it is unwise to rely on Lucene-assigned document
IDs. If you need an invariant document ID, assign it yourself.

If this is off base, could you supply your use-case?


On Thu, May 13, 2010 at 9:38 PM, Nigel <> wrote:

> The FAQ clearly states that document IDs will not be re-assigned unless
> something was deleted.
> However, a number of other emails and posts I've read mention that
> renumbering occurs when segments are merged.  Maybe what people mean
> is simply that when something is deleted, nothing is immediately
> renumbered,
> and it's not until merge time that the renumbering happens.  (This is my
> understanding of how it works.)
> Just so I'm 100% clear, if I never delete anything, will the IDs ever
> change?
> Thanks,
> Chris

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message