Skip to content

Commit

Permalink
add: split searched doc's desc
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarrettluo committed Mar 6, 2024
1 parent 2453e9a commit b60a06d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/main/java/com/jiaruiblog/controller/UserController.java
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,6 @@ public BaseApiResult deleteByIdBatch(@RequestBody BatchIdDTO batchIdDTO, HttpSer
@ApiOperation(value = "用户登录")
@PostMapping("/login")
public BaseApiResult login(@RequestBody RegistryUserDTO user) {


return userService.login(user);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,10 @@ public List<FileDocument> search(String keyword) throws IOException {

StringBuilder stringBuilder1 = new StringBuilder();
for (Text fragment : highlightField.getFragments()) {
if (stringBuilder1.length()>0) {
stringBuilder1.append("<br/>");
}
stringBuilder1.append("📖 ");
stringBuilder1.append(fragment.toString());
}
String abstractString = stringBuilder1.toString();
Expand Down

0 comments on commit b60a06d

Please sign in to comment.