mirror of https://github.com/apache/lucene.git
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:
parent
58d99f3415
commit
0775014bb9
|
@ -88,7 +88,7 @@ public class AllGroupsCollector extends Collector {
|
||||||
int key = index.getOrd(doc);
|
int key = index.getOrd(doc);
|
||||||
if (!ordSet.exists(key)) {
|
if (!ordSet.exists(key)) {
|
||||||
ordSet.put(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);
|
groups.add(term);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue