LUCENE-3098: don't double-lookup the doc's ord

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1126761 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2011-05-23 21:31:57 +00:00
parent 58d99f3415
commit 0775014bb9
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ public class AllGroupsCollector extends Collector {
int key = index.getOrd(doc);
if (!ordSet.exists(key)) {
ordSet.put(key);
BytesRef term = key == 0 ? null : index.getTerm(doc, new BytesRef());
BytesRef term = key == 0 ? null : index.lookup(key, new BytesRef());
groups.add(term);
}
}