Update Local Lucene Index
This commit is contained in:
parent
36a0812237
commit
89f20b449b
@ -314,12 +314,8 @@ public class LLLocalLuceneIndex implements LLLuceneIndex {
|
||||
//noinspection BlockingMethodInNonBlockingContext
|
||||
indexWriter.deleteAll();
|
||||
//noinspection BlockingMethodInNonBlockingContext
|
||||
indexWriter.commit();
|
||||
//noinspection BlockingMethodInNonBlockingContext
|
||||
indexWriter.forceMergeDeletes(true);
|
||||
//noinspection BlockingMethodInNonBlockingContext
|
||||
indexWriter.flush();
|
||||
//noinspection BlockingMethodInNonBlockingContext
|
||||
indexWriter.commit();
|
||||
return null;
|
||||
}).subscribeOn(luceneBlockingScheduler);
|
||||
@ -680,8 +676,6 @@ public class LLLocalLuceneIndex implements LLLuceneIndex {
|
||||
try {
|
||||
//noinspection BlockingMethodInNonBlockingContext
|
||||
indexWriter.commit();
|
||||
//noinspection BlockingMethodInNonBlockingContext
|
||||
indexWriter.flush();
|
||||
} finally {
|
||||
scheduledTasksLifecycle.endScheduledTask();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user