LUCENE-4068: Improve IW#addDocuments(...) javadoc

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1340966 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Martijn van Groningen 2012-05-21 11:07:01 +00:00
parent 98d15d4e67
commit 20f10be75b

View File

@ -1041,12 +1041,19 @@ public class IndexWriter implements Closeable, TwoPhaseCommit {
* *
* <p><b>WARNING</b>: the index does not currently record * <p><b>WARNING</b>: the index does not currently record
* which documents were added as a block. Today this is * which documents were added as a block. Today this is
* fine, because merging will preserve the block (as long * fine, because merging will preserve a block. The order of
* as none them were deleted). But it's possible in the * documents within a segment will be preserved, even when child
* future that Lucene may more aggressively re-order * documents within a block are deleted. Most search features
* documents (for example, perhaps to obtain better index * (like result grouping and block joining) require you to
* compression), in which case you may need to fully * mark documents; when these documents are deleted these
* re-index your documents at that time. * search features will not work as expected. Obviously adding
* documents to an existing block will require you the reindex
* the entire block.
*
* <p>However it's possible that in the future Lucene may
* merge more aggressively re-order documents (for example,
* perhaps to obtain better index compression), in which case
* you may need to fully re-index your documents at that time.
* *
* <p>See {@link #addDocument(Iterable)} for details on * <p>See {@link #addDocument(Iterable)} for details on
* index and IndexWriter state after an Exception, and * index and IndexWriter state after an Exception, and