Skip to content

Commit

Permalink
fix: 修复大文件未索引的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
jamebal committed Jun 10, 2024
1 parent b09a01d commit 8ea6f9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/jmal/clouddisk/lucene/LuceneService.java
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ public void processFilesToBeIndexed() throws IOException {
updateIndexStatus(fileIntroVO, IndexStatus.INDEXING);
long size = fileIntroVO.getSize();
if (RebuildIndexTaskService.isSyncFile() || size > 20 * 1024 * 1024) {
updateIndex(false, fileIntroVO);
updateIndex(true, fileIntroVO);
} else {
executorUpdateContentIndexService.execute(() -> updateIndex(true, fileIntroVO));
}
Expand Down

0 comments on commit 8ea6f9c

Please sign in to comment.