Logger.debug("Received query " + query + " / " + projectId);
// strip the plugin ID and the brackets first
query = StringUtils.undoSpecialCharReplacements(query.substring(query
.indexOf(':') + 1, query.length() - 1));
SearchManager sm = new SearchManager();
List<SearchResult> results = sm.performBasicQuery(query,
SearchType.AND, projectId, activeElementsOnly(),
allowZeroIndexMultiplierMatches(), false, null, null, null,
null, null);
StringBuffer toReturn = new StringBuffer();