logger.debug("search {searchquery='"+queryStr+"'}");
ParallelMultiSearcher searcher = null;
ArchivaAnalyzer analyzer = new ArchivaAnalyzer();
Query query = null;
QueryFilter filter = null;
Query filterQuery = null;
try {
query = QueryParser.parse(queryStr,"body",analyzer);
//query = MultiFieldQueryParser.parse(queryStr,fields, analyzer);
//query = QueryParser.parse(queryStr,"body", analyzer);
if (search.getUserRole().compareToIgnoreCase("user")==0) {
filterQuery = QueryParser.parse("to:"+search.getUserName()+" from:"+search.getUserName(),"to",analyzer);
filter = new QueryFilter(filterQuery);
}
} catch (ParseException pe)
{
throw new MessageSearchException("failed to parse search query {searchquery='"+search.getSearchQuery()+"'}",pe,logger);
}