| Line 391... |
Line 391... |
| 391 |
}
|
391 |
}
|
| 392 |
|
392 |
|
| 393 |
@GetMapping(value = "/entity")
|
393 |
@GetMapping(value = "/entity")
|
| 394 |
public String searchEntity(HttpServletRequest request, @RequestParam(defaultValue = "null") String query,
|
394 |
public String searchEntity(HttpServletRequest request, @RequestParam(defaultValue = "null") String query,
|
| 395 |
@RequestParam(defaultValue = "0") int categoryId, @RequestParam(defaultValue = "") List<String> brands,
|
395 |
@RequestParam(defaultValue = "0") int categoryId, @RequestParam(defaultValue = "") List<String> brands,
|
| 396 |
@RequestParam(defaultValue = "30") int limit, @RequestParam(defaultValue = "true") boolean activeOnly,
|
396 |
@RequestParam(defaultValue = "30") int limit, @RequestParam(defaultValue = "false") boolean activeOnly,
|
| 397 |
Model model) throws Exception {
|
397 |
Model model) throws Exception {
|
| 398 |
brands = normalizeBrandNames(brands);
|
398 |
brands = normalizeBrandNames(brands);
|
| 399 |
model.addAttribute("response1", solrService.getContent(query, categoryId > 0 ? Arrays.asList(categoryId) : null,
|
399 |
model.addAttribute("response1", solrService.getContent(query, categoryId > 0 ? Arrays.asList(categoryId) : null,
|
| 400 |
brands, limit, false));
|
400 |
brands, limit, activeOnly));
|
| 401 |
return "response";
|
401 |
return "response";
|
| 402 |
}
|
402 |
}
|
| 403 |
|
403 |
|
| 404 |
@GetMapping(value = "/focusedEntity")
|
404 |
@GetMapping(value = "/focusedEntity")
|
| 405 |
public String focusedEntity(HttpServletRequest request, @RequestParam(defaultValue = "null") String query,
|
405 |
public String focusedEntity(HttpServletRequest request, @RequestParam(defaultValue = "null") String query,
|