fix #66
This commit is contained in:
parent
17b76c9cf5
commit
6fcb8fac05
3 changed files with 4 additions and 4 deletions
|
@ -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()) {
|
||||
|
|
|
@ -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 "
|
||||
|
|
|
@ -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 "
|
||||
|
|
Loading…
Add table
Reference in a new issue