lucene 4: fix call to expungeDeletes

This commit is contained in:
Shay Banon 2012-10-26 00:17:59 +02:00
parent 386c2ebdb9
commit 7972f6f959
1 changed files with 1 additions and 1 deletions

View File

@ -1018,7 +1018,7 @@ public class RobinEngine extends AbstractIndexShardComponent implements Engine {
((EnableMergePolicy) indexWriter.getConfig().getMergePolicy()).enableMerge(); ((EnableMergePolicy) indexWriter.getConfig().getMergePolicy()).enableMerge();
} }
if (optimize.onlyExpungeDeletes()) { if (optimize.onlyExpungeDeletes()) {
indexWriter.expungeDeletes(false); indexWriter.forceMergeDeletes(false);
} else if (optimize.maxNumSegments() <= 0) { } else if (optimize.maxNumSegments() <= 0) {
indexWriter.maybeMerge(); indexWriter.maybeMerge();
possibleMergeNeeded = false; possibleMergeNeeded = false;