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));
}
}