long end = System.nanoTime();
LOG.debug(String.format("Done search in %f ms. hits.length=%d",(end-start) / 1000000.0, hits.length));
} catch (TimeLimitingCollector.TimeExceededException timedOutException) {
throw new TimeoutException("Timeout (>"+timeout+"ms searching for surface form "+query.toString(),timedOutException);
} catch (Exception e) {
throw new SearchException("Error searching for surface form "+query.toString(),e);
}
//LOG.debug(hits.length+" hits found.");
return hits;
}