集成elasticsearch搜索引擎

This commit is contained in:
xiongxiaoyang committed 2020-05-20 18:08:29 +08:00
1 parent 4aa6b82143
commit 8a628f081f
14 files changed
+564 -21

No files matched your search

@@ -79,8 +79,8 @@ public class BookController extends BaseController{
* */
@PostMapping("searchByPage")
public ResultBean searchByPage(BookSP bookSP, @RequestParam(value = "curr", defaultValue = "1") int page, @RequestParam(value = "limit", defaultValue = "20") int pageSize){
List<BookVO> books = bookService.searchByPage(bookSP,page,pageSize);
return ResultBean.ok(new PageInfo<>(books));
PageInfo<BookVO> pageInfo = bookService.searchByPage(bookSP,page,pageSize);
return ResultBean.ok(pageInfo);
}
/**