Package com.m4f.business.domain

Examples of com.m4f.business.domain.PhraseSearch


  public void saveSearchedPhrase(ISearchParams params) {
    // First, we check if start is zero. It means that it�s not iterating over the results through pagination
    String start = params.getParam(ISearchParams.PARAM.START);
    if("0".equals(start)) {
      try {
          PhraseSearch phrase = new PhraseSearch();
        phrase.setLanguage(params.getParam(ISearchParams.PARAM.LANG));
        phrase.setPhrase(URLDecoder.decode(params.getParam(ISearchParams.PARAM.QUERY), "UTF-8")); // URL DECODING
        phrase.setDate(new Date());
        this.searchService.savePhraseSearch(phrase);
      } catch (Exception e) {     
        LOGGER.log(Level.SEVERE, StackTraceUtil.getStackTrace(e));
      }
    }
View Full Code Here

TOP

Related Classes of com.m4f.business.domain.PhraseSearch

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.