assert original != null;
assert hits != null;
WeightingData bestHit = null;
float bestRating = Float.NEGATIVE_INFINITY;
for (int i = 0; i < hits.length(); i++) {
<BUG>Document doc = hits.doc(i);
String file = doc.getField(DocumentBuilder.FIELD_NAME_IDENTIFIER).stringValue();</BUG>
WeightingData data = weightingDataFactory_.newInstance(doc);
<BUG>data.setRelevancy(hits.score(i));
</BUG>
data.setSlice(original);

assert original != null;
assert hits != null;
WeightingData bestHit = null;
float bestRating = Float.NEGATIVE_INFINITY;
for (int i = 0; i < hits.length(); i++) {
Document doc = reader.document(hits.documentID(i));
String file = doc.getField(DocumentBuilder.FIELD_NAME_IDENTIFIER).stringValue();
WeightingData data = weightingDataFactory_.newInstance(doc);
data.setRelevancy((float) hits.score(i));
data.setSlice(original);
