Package com.m4f.utils.search.ifc

Examples of com.m4f.utils.search.ifc.ISearchResults


        PageManager<ISearchResults> paginator = new PageManager<ISearchResults>();
        paginator.setStart((page - 1) * paginator.getOffset());
        params.addParam(PARAM.START, String.valueOf(paginator
            .getStart()));
        this.serviceLocator.getSearchEngine().search(terms, params);
        ISearchResults results = this.serviceLocator.getSearchEngine().getSearchResults();
        paginator.setCollection((Collection) results);
        try {
          paginator
              .setSize(Long.parseLong(results.getTotalResults()));
          model.addAttribute("paginator", paginator);
        } catch (Exception e) {
          paginator.setSize(0);
        }
      }
View Full Code Here


      params.addParam(PARAM.LANG, locale.getLanguage());
      PageManager<ISearchResults> paginator = new PageManager<ISearchResults>();
      paginator.setStart((page - 1) * paginator.getOffset());
      params.addParam(PARAM.START, String.valueOf(paginator.getStart()));
      this.serviceLocator.getSearchEngine().search(terms, params);
      ISearchResults results = this.serviceLocator.getSearchEngine().getSearchResults();
      paginator.setCollection((Collection) results);
      try {
        paginator.setSize(Long.parseLong(results.getTotalResults()));
      } catch (Exception e) {
        paginator.setSize(0);
      }
      model.addAttribute("paginator", paginator);
    } catch (Exception e) {
View Full Code Here

     
      PageManager<ISearchResults> paginator = new PageManager<ISearchResults>();
      paginator.setStart((page-1)*paginator.getOffset());
      params.addParam(PARAM.START, String.valueOf(paginator.getStart()));
      this.serviceLocator.getSearchEngine().search(terms, params);
      ISearchResults results = this.serviceLocator.getSearchEngine().getSearchResults();
      paginator.setCollection((Collection)results);
      try {
        paginator.setSize(Long.parseLong(results.getTotalResults()));
      } catch(Exception e) {
        paginator.setSize(0);
      }
      model.addAttribute("searc", searchForm);
      model.addAttribute("paginator", paginator);
View Full Code Here

TOP

Related Classes of com.m4f.utils.search.ifc.ISearchResults

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.