| Line 234... |
Line 234... |
| 234 |
public String searchEntity(HttpServletRequest request, @RequestParam(defaultValue = "null") String query,
|
234 |
public String searchEntity(HttpServletRequest request, @RequestParam(defaultValue = "null") String query,
|
| 235 |
@RequestParam(defaultValue = "0") int categoryId, @RequestParam(defaultValue = "") List<String> brands,
|
235 |
@RequestParam(defaultValue = "0") int categoryId, @RequestParam(defaultValue = "") List<String> brands,
|
| 236 |
@RequestParam(defaultValue = "30") int limit,
|
236 |
@RequestParam(defaultValue = "30") int limit,
|
| 237 |
@RequestParam(defaultValue = "true") boolean activeOnly,
|
237 |
@RequestParam(defaultValue = "true") boolean activeOnly,
|
| 238 |
Model model) throws Exception {
|
238 |
Model model) throws Exception {
|
| 239 |
model.addAttribute("response", solrService.getContent(query, Arrays.asList(categoryId), brands, limit, activeOnly));
|
239 |
model.addAttribute("response", solrService.getContent(query, categoryId > 0 ? Arrays.asList(categoryId) : null, brands, limit, activeOnly));
|
| 240 |
return "response";
|
240 |
return "response";
|
| 241 |
}
|
241 |
}
|
| 242 |
|
242 |
|
| 243 |
@GetMapping(value = "/content/index")
|
243 |
@GetMapping(value = "/content/index")
|
| 244 |
public String index(HttpServletRequest request, Model model) throws Exception {
|
244 |
public String index(HttpServletRequest request, Model model) throws Exception {
|