Subversion Repositories SmartDukaan

Rev

Rev 30080 | Rev 30267 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 30080 Rev 30262
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, categoryId, brands, limit, activeOnly));
239
		model.addAttribute("response", solrService.getContent(query, Arrays.asList(categoryId), 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 {