query.add(new TermQuery(new Term(GID, pk)), Occur.MUST);
Hits hits = searcher.search(query);
log.info("Searched for: " + query.toString(GID) + " in " + (System.currentTimeMillis() - start) + " ms");
for (Iterator iter = hits.iterator(); iter.hasNext();) {
Hit hit = (Hit) iter.next();
result.addObject(hit.getDocument());
}
log.info("Returning " + result.count() + " after " + (System.currentTimeMillis() - start) + " ms");
} catch (IOException e) {
throw NSForwardException._runtimeExceptionForThrowable(e);
}