clarify that IW.expungeDeletes relies on MP to determine merges

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1169816 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2011-09-12 16:16:18 +00:00
parent ebc43a1f5f
commit b4ff37ebbc
1 changed files with 8 additions and 1 deletions

View File

@ -1901,7 +1901,14 @@ public class IndexWriter implements Closeable, TwoPhaseCommit {
}
/** Expunges all deletes from the index. When an index
/** Requests an expungeDeletes operation, by invoking
* {@link MergePolicy#findMergesToExpungeDeletes}.
* The MergePolicy determines what merges should be done.
* For example, the default {@link TieredMergePolicy}
* will only expunage deletes from a segment if the
* percentage of deleted docs is over 10%.
*
* <p>When an index
* has many document deletions (or updates to existing
* documents), it's best to either call optimize or
* expungeDeletes to remove all unused data in the index