This commit is contained in:
Shinsuke Sugaya 2013-12-06 21:30:10 +09:00
parent 17b76c9cf5
commit 6fcb8fac05
3 changed files with 4 additions and 4 deletions

View file

@ -178,7 +178,7 @@ public class DocumentAction implements Serializable {
final long execTime = System.currentTimeMillis();
try {
systemHelper.updateStatus(solrGroup, QueryType.ADD);
solrGroup.commit();
solrGroup.commit(true, true, false, true);
systemHelper.updateStatus(solrGroup,
QueryType.COMMIT);
@ -297,7 +297,7 @@ public class DocumentAction implements Serializable {
systemHelper.updateStatus(solrGroup,
QueryType.DELETE);
solrGroup.deleteByQuery(deleteQuery);
solrGroup.commit();
solrGroup.commit(true, true, false, true);
systemHelper.updateStatus(solrGroup,
QueryType.OPTIMIZE);
if (logger.isInfoEnabled()) {

View file

@ -158,7 +158,7 @@ public class IndexUpdateCallbackImpl implements IndexUpdateCallback {
logger.info("Committing documents. ");
}
synchronized (solrGroup) {
solrGroup.commit();
solrGroup.commit(true, true, false, true);
}
if (logger.isInfoEnabled()) {
logger.info("Committed documents. The execution time is "

View file

@ -620,7 +620,7 @@ public class IndexUpdater extends Thread {
logger.info("Committing documents. ");
}
synchronized (solrGroup) {
solrGroup.commit();
solrGroup.commit(true, true, false, true);
}
if (logger.isInfoEnabled()) {
logger.info("Committed documents. The execution time is "