lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Jakarta Lucene Wiki] Updated: LuceneFAQ
Date Tue, 01 Mar 2005 20:14:25 GMT
   Date: 2005-03-01T12:14:25
   Editor: HossMan
   Wiki: Jakarta Lucene Wiki
   Page: LuceneFAQ

   from doug, lucene-users, "Tue, 01 Mar 2005 10:19:05 -0800"

Change Log:

@@ -406,9 +406,11 @@
 Yes, `IndexWriter.addIndexes(Directory[])` method is thread safe.  It is a `final synchronized`
-==== Do document IDs change after merging indices or after document deletion? ====
+==== When is it possible for document IDs to change? ====
-Yes, document IDs do change.
+Documents are only re-numbered after there have been deletions.  Once there have been deletions,
renumbering may be triggered by any document addition or index optimization.  Once an index
is optimized, no renumbering will be performed unril more deletions are made.
+If you require a persistent document id that survives deletions, then add it as a field to
your documents.
 ==== What is the purpose of write.lock file, when is it used, and by which classes? ====

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message