luceneHits = new ArrayList<LuceneHit>(upperIndex - offset);
for (int i = offset; i < upperIndex; i++) {
int docId = hitsList[i].doc;
Document d = searcher.doc(docId);
LuceneHit hit = new LuceneHit (docId, d);
luceneHits.add(hit);
}
if(UtilMethods.isSet(sortBy) && sortBy.trim().equalsIgnoreCase("random")){