|
@@ -252,7 +252,7 @@ public class SearchController {
|
|
|
|
|
|
|
|
@RequestMapping("/objects")
|
|
@RequestMapping("/objects")
|
|
|
@ResponseBody
|
|
@ResponseBody
|
|
|
- public SPage<Object> getObjects(@RequestParam(required = true) String tableName, String keyword, String field,
|
|
|
|
|
|
|
+ public SPage<Object> getObjects(@RequestParam String tableName, String keyword, String field,
|
|
|
Boolean tokenized, Integer page, Integer size, HttpServletRequest request) {
|
|
Boolean tokenized, Integer page, Integer size, HttpServletRequest request) {
|
|
|
return searchService.getObjects(tableName.toLowerCase(), keyword, field, tokenized, page == null ? 0 : page,
|
|
return searchService.getObjects(tableName.toLowerCase(), keyword, field, tokenized, page == null ? 0 : page,
|
|
|
size == null ? 0 : size);
|
|
size == null ? 0 : size);
|
|
@@ -260,7 +260,7 @@ public class SearchController {
|
|
|
|
|
|
|
|
@RequestMapping("/allObjectsToFiles")
|
|
@RequestMapping("/allObjectsToFiles")
|
|
|
@ResponseBody
|
|
@ResponseBody
|
|
|
- public String writeAllObjectsToFiles(@RequestParam(required = true) String tableName, HttpServletRequest request) {
|
|
|
|
|
|
|
+ public String writeAllObjectsToFiles(@RequestParam String tableName, HttpServletRequest request) {
|
|
|
int page = 1;
|
|
int page = 1;
|
|
|
int size = 1000;
|
|
int size = 1000;
|
|
|
// 不能边更新索引边分页获取索引中的数据,因为索引更新后,分页顺序可能也会变化,
|
|
// 不能边更新索引边分页获取索引中的数据,因为索引更新后,分页顺序可能也会变化,
|