for (int i = start; i < end; i++) {
HashMap hit = new HashMap ();
hit.put (SCORE_FIELD, new Float (hits.score (i)));
hit.put (INDEX_FIELD, new Long (i));
Document doc = hits.doc (i);
for (Enumeration e = doc.fields (); e.hasMoreElements (); ) {
Field field = (Field)e.nextElement ();
if (field.name ().equals (SCORE_FIELD)) continue;
if (field.name ().equals (INDEX_FIELD)) continue;
hit.put (field.name (), field.stringValue ());
}