* @param searchTerm
* the search term
*/
protected void saveSearchHistory(String searchTerm) {
if (StringUtils.isNotBlank(searchTerm)) {
SearchHistory s = new SearchHistory();
s.date = new Date();
s.searchTerm = searchTerm;
s.save();
} else {
Logger.warn("Cannot save search history for invalid term: %s", searchTerm);
}
}