if (LOG.isLoggable(Level.FINER)) {
LOG.finer("Starting SEARCH IN thread id= " + this.getId() + ", rid="
+ this.getRID());
}
if (this.rid.equalsIgnoreCase("local")) {
GetRecordsGenerator grg = new GetRecordsGenerator(rc);
if (engine.getHitsOnly()) {
grg.setResultType("HITS");
}
String cswRequest = grg.generateCswRequest(query);
SearchEngineCSW csw = (SearchEngineCSW) engine;
if (this.isTimeUp()) {
throw new Exception("This threads time is up");
}
csw.doSearch(cswRequest);