results.add(hit);
}
countModuleHit++;
}
// not stricly necessary, but sometimes lucene doesn't find the revisions in the second step...
hit.addRevision(doc.get("path"), doc.get("revision"));
}
Long nextResults = i == hits.length()?null:new Long(startIndex+RESULTS_PER_PAGE);
Long previousResults = startIndex == 0?null:new Long(startIndex-RESULTS_PER_PAGE);
// then we fill in revisions