// ensure we do not get duplicates from Lucene by
// using a Set Collection. Entries sorted by pubTime.
TreeSet set = (TreeSet) searchResults.get(midnight);
if (set == null) {
// date is not mapped yet, so we need a new Set
set = new TreeSet( new WeblogEntryWrapperComparator() );
searchResults.put(midnight, set);
}
set.add(entry);
}