Subversion Repositories SmartDukaan

Rev

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

Rev 27600 Rev 27608
Line 159... Line 159...
159
	}
159
	}
160
 
160
 
161
	@GetMapping(value = "/entity")
161
	@GetMapping(value = "/entity")
162
	public String searchEntity(HttpServletRequest request, @RequestParam(defaultValue="null") String query,
162
	public String searchEntity(HttpServletRequest request, @RequestParam(defaultValue="null") String query,
163
							   @RequestParam(defaultValue="0") int categoryId,
163
							   @RequestParam(defaultValue="0") int categoryId,
164
							   @RequestParam(defaultValue="") List<String> brands, Model model) throws Exception {
164
							   @RequestParam(defaultValue="") List<String> brands, 
-
 
165
							   @RequestParam(defaultValue="30") int limit, 
-
 
166
							   Model model) throws Exception {
165
		model.addAttribute("response", solrService.getContent(query, categoryId, brands));
167
		model.addAttribute("response", solrService.getContent(query, categoryId, brands, limit));
166
		return "response";
168
		return "response";
167
	}
169
	}
168
 
170
 
169
	@GetMapping(value = "/content/index")
171
	@GetMapping(value = "/content/index")
170
	public String index(HttpServletRequest request, Model model) throws Exception {
172
	public String index(HttpServletRequest request, Model model) throws Exception {