}
mqt.setQuery(q);
mqt.normaliseTermWeights();
try{
ResultSet outRs = matching.match(rq.getQueryID(), mqt);
//now crop the collectionresultset down to a query result set.
rq.setResultSet(outRs.getResultSet(0, outRs.getResultSize()));
} catch (IOException ioe) {
logger.error("Problem running Matching, returning empty result set as query"+rq.getQueryID(), ioe);
rq.setResultSet(new QueryResultSet(0));