Skip to content

Commit

Permalink
test: deleteDocByDeleteFlag
Browse files Browse the repository at this point in the history
  • Loading branch information
jamebal committed May 8, 2024
1 parent 954cd5c commit 0765c80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ private void createIndexFiles(List<String> fileIdList) throws IOException {
String content = readFileContent(file);
updateIndexDocument(indexWriter, fileIndex, content);
if (StrUtil.isNotBlank(content)) {
log.info("添加索引, filepath: {}, fileId: {}", file.getAbsoluteFile(), fileIntroVO.getId());
log.info("添加索引, filepath: {}", file.getAbsoluteFile());
}
}
indexWriter.commit();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public ResponseResult<Object> sync(String username) {
Files.walkFileTree(path, fileVisitOptions, Integer.MAX_VALUE, syncFileVisitor);
TimeUnit.MINUTES.sleep(1);
// 删除有删除标记的doc
//commonFileService.deleteDocByDeleteFlag(username);
commonFileService.deleteDocByDeleteFlag(username);
} catch (IOException e) {
log.error("{}{}", e.getMessage(), path, e);
} catch (InterruptedException e) {
Expand Down

0 comments on commit 0765c80

Please sign in to comment.