don't increment the counter twice

This commit is contained in:
kimchy 2010-05-16 23:50:39 +03:00
parent ab57fa86af
commit 918e2a6882

View File

@ -110,8 +110,6 @@ public class FetchPhase implements SearchPhase {
hitField.values().add(value);
}
doExplanation(context, docId, searchHit);
index++;
}
context.fetchResult().hits(new InternalSearchHits(hits, context.queryResult().topDocs().totalHits));