From 0775014bb99fd63407691ac6653b398b4d870207 Mon Sep 17 00:00:00 2001 From: Michael McCandless Date: Mon, 23 May 2011 21:31:57 +0000 Subject: [PATCH] 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 --- .../org/apache/lucene/search/grouping/AllGroupsCollector.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/grouping/src/java/org/apache/lucene/search/grouping/AllGroupsCollector.java b/modules/grouping/src/java/org/apache/lucene/search/grouping/AllGroupsCollector.java index 2f2c64ca14a..496ced1f232 100644 --- a/modules/grouping/src/java/org/apache/lucene/search/grouping/AllGroupsCollector.java +++ b/modules/grouping/src/java/org/apache/lucene/search/grouping/AllGroupsCollector.java @@ -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); } }