doc.add(new Field("id", hits[i].doc + "", Field.Store.YES, Field.Index.NO));
log.debug("adding contentid: " + doc.getField("contentid"));
log.debug("with hits[" + i + "].score = " + hits[i].score);
result.put(doc, hits[i].score);
if (explain) {
Explanation ex = searcher.explain(parsedQuery, hits[i].doc);
log_explain.debug("Explanation for " + doc.toString() + " - " + ex.toString());
}
} else {
log.error("Loading search documents failed partly (document has MAX_INTEGER as document id");
}
}