Date: 2005-03-01T12:14:25
   Editor: HossMan
   Wiki: Jakarta Lucene Wiki
   Page: LuceneFAQ
   URL: http://wiki.apache.org/jakarta-lucene/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` method.
 
 
-==== 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to