lucene 4: fix call to expungeDeletes
This commit is contained in:
parent
386c2ebdb9
commit
7972f6f959
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue