explicitly set optimize parameters when doing async merge

This commit is contained in:
kimchy 2011-01-29 04:11:56 +02:00
parent 4a27671d0c
commit 2d94087f90
1 changed files with 1 additions and 1 deletions

View File

@ -622,7 +622,7 @@ public class InternalIndexShard extends AbstractIndexShardComponent implements I
@Override public void run() { @Override public void run() {
try { try {
// -1 means maybe merge // -1 means maybe merge
engine.optimize(new Engine.Optimize().maxNumSegments(-1).waitForMerge(false)); engine.optimize(new Engine.Optimize().maxNumSegments(-1).waitForMerge(false).flush(false).refresh(false));
} catch (EngineClosedException e) { } catch (EngineClosedException e) {
// we are being closed, ignore // we are being closed, ignore
} catch (OptimizeFailedEngineException e) { } catch (OptimizeFailedEngineException e) {