String newSuggestionQuery = originalQuery.replaceAll(":\\*?([^*]*)\\*?", ":$1");
try {
rwQuery = parser.parse(newSuggestionQuery);
termset = new HashSet<Term>();
// REWRITE NEWLY PARSED QUERY
rwQuery = rwQuery.rewrite(reader);
rwQuery.extractTerms(termset);
suggestions = this.didyoumeanprovider.getSuggestionTerms(termset, this.didyoumeansuggestcount, reader);
} catch (ParseException e) {
log.error("Cannot Parse Suggestion Query.", e);