Search in sources :

Example 6 with PostQueryDTO

use of com.nixmash.blog.jpa.dto.PostQueryDTO in project nixmash-blog by mintster.

the class PostsController method searchPage.

@RequestMapping(value = "/search", method = GET)
public String searchPage(Model model, HttpServletRequest request) {
    model.addAttribute("postQueryDTO", new PostQueryDTO());
    model.addAttribute("isSearchResult", false);
    WebUtils.setSessionAttribute(request, SESSION_POSTQUERYDTO, null);
    return POSTS_SEARCH_VIEW;
}
Also used : PostQueryDTO(com.nixmash.blog.jpa.dto.PostQueryDTO) RequestMapping(org.springframework.web.bind.annotation.RequestMapping)

Aggregations

PostQueryDTO (com.nixmash.blog.jpa.dto.PostQueryDTO)6 PostDoc (com.nixmash.blog.solr.model.PostDoc)4 Test (org.junit.Test)4 UncategorizedSolrException (org.springframework.data.solr.UncategorizedSolrException)2 RequestMapping (org.springframework.web.bind.annotation.RequestMapping)2 PostNotFoundException (com.nixmash.blog.jpa.exceptions.PostNotFoundException)1 JsonRequestMapping (com.nixmash.blog.mvc.annotations.JsonRequestMapping)1