You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by yo...@apache.org on 2010/05/04 00:00:29 UTC
svn commit: r940650 -
/lucene/dev/trunk/solr/src/java/org/apache/solr/request/SimpleFacets.java
Author: yonik
Date: Mon May 3 22:00:29 2010
New Revision: 940650
URL: http://svn.apache.org/viewvc?rev=940650&view=rev
Log:
forgot to use offset in BulkReadResult
Modified:
lucene/dev/trunk/solr/src/java/org/apache/solr/request/SimpleFacets.java
Modified: lucene/dev/trunk/solr/src/java/org/apache/solr/request/SimpleFacets.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/src/java/org/apache/solr/request/SimpleFacets.java?rev=940650&r1=940649&r2=940650&view=diff
==============================================================================
--- lucene/dev/trunk/solr/src/java/org/apache/solr/request/SimpleFacets.java (original)
+++ lucene/dev/trunk/solr/src/java/org/apache/solr/request/SimpleFacets.java Mon May 3 22:00:29 2010
@@ -574,7 +574,8 @@ public class SimpleFacets {
int nDocs = docsEnum.read();
if (nDocs == 0) break;
int[] docArr = bulk.docs.ints; // this might be movable outside the loop, but perhaps not worth the risk.
- for (int i=0; i<nDocs; i++) {
+ int end = bulk.docs.offset + nDocs;
+ for (int i=bulk.docs.offset; i<end; i++) {
if (docs.exists(docArr[i])) c++;
}
}