class CompetitionSearchController {

    @NotSecured("Not currently secured")
    @GetMapping
    public String publicContentSearch(Model model, @RequestParam(value = KEYWORDS_KEY, required = false) Optional<String> keywords,
                                      @RequestParam(value = INNOVATION_AREA_ID_KEY, required = false) Optional<Long> innovationAreaId,
                                      @RequestParam(value = PAGE_NUMBER_KEY, required = false) Optional<Integer> pageNumber) {

        model.addAttribute("model", itemSearchPopulator.createItemSearchViewModel(innovationAreaId, keywords,  pageNumber));

        return TEMPLATE_FOLDER + "search";
    }

}