lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <erickerick...@gmail.com>
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?

Best
Erick

On Thu, May 13, 2010 at 9:38 PM, Nigel <nigelspleen@gmail.com> wrote:

> The FAQ clearly states that document IDs will not be re-assigned unless
> something was deleted.
>
> http://wiki.apache.org/lucene-java/LuceneFAQ#When_is_it_possible_for_document_IDs_to_change.3F
>
> 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
>

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