pull/1/head
Michael Peter Christen 12 years ago
parent a79f288ac1
commit b79471ee67

@ -2300,7 +2300,7 @@ public final class Switchboard extends serverSwitch {
index.fulltext().optimize(8); index.fulltext().optimize(8);
} }
if (optimizeRequired) { if (optimizeRequired) {
int opts = idleSearch > 600000 ? 0 : 5; int opts = idleSearch > 600000 ? 1 : 5;
log.info("Solr auto-optimization: running solr.optimize(" + opts + ")"); log.info("Solr auto-optimization: running solr.optimize(" + opts + ")");
index.fulltext().optimize(opts); index.fulltext().optimize(opts);
this.optimizeLastRun = System.currentTimeMillis(); this.optimizeLastRun = System.currentTimeMillis();

Loading…
Cancel
Save