ResourceSuite suite = (ResourceSuite) resourceMap.get(resourceName);
try {
Query query = parseQuery(suite.meta, q, args);
Hits hits = suite.indexSearcher.search(query);
ResultPatternFactory factory = suite.resultPatternFactory;
ResultPattern rp = factory.createResultPattern(suite.meta
.getHitTextPattern());
return new LocalLuceneQueryResults(query, hits, rp);
} catch (ParseException e) {
log.error("Cannot parse the query. Please check the syntax.");
} catch (IOException e) {