You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by mi...@apache.org on 2011/05/23 23:31:57 UTC

svn commit: r1126761 - /lucene/dev/trunk/modules/grouping/src/java/org/apache/lucene/search/grouping/AllGroupsCollector.java

Author: mikemccand
Date: Mon May 23 21:31:57 2011
New Revision: 1126761

URL: http://svn.apache.org/viewvc?rev=1126761&view=rev
Log:
LUCENE-3098: don't double-lookup the doc's ord

Modified:
    lucene/dev/trunk/modules/grouping/src/java/org/apache/lucene/search/grouping/AllGroupsCollector.java

Modified: lucene/dev/trunk/modules/grouping/src/java/org/apache/lucene/search/grouping/AllGroupsCollector.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/modules/grouping/src/java/org/apache/lucene/search/grouping/AllGroupsCollector.java?rev=1126761&r1=1126760&r2=1126761&view=diff
==============================================================================
--- lucene/dev/trunk/modules/grouping/src/java/org/apache/lucene/search/grouping/AllGroupsCollector.java (original)
+++ lucene/dev/trunk/modules/grouping/src/java/org/apache/lucene/search/grouping/AllGroupsCollector.java Mon May 23 21:31:57 2011
@@ -88,7 +88,7 @@ public class AllGroupsCollector extends 
     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);
     }
   }