lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbern...@apache.org
Subject svn commit: r1541232 - /lucene/dev/trunk/solr/core/src/java/org/apache/solr/search/CollapsingQParserPlugin.java
Date Tue, 12 Nov 2013 20:53:30 GMT
Author: jbernste
Date: Tue Nov 12 20:53:29 2013
New Revision: 1541232

URL: http://svn.apache.org/r1541232
Log:
SOLR-5408 Fixed issue with scorer

Modified:
    lucene/dev/trunk/solr/core/src/java/org/apache/solr/search/CollapsingQParserPlugin.java

Modified: lucene/dev/trunk/solr/core/src/java/org/apache/solr/search/CollapsingQParserPlugin.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/java/org/apache/solr/search/CollapsingQParserPlugin.java?rev=1541232&r1=1541231&r2=1541232&view=diff
==============================================================================
--- lucene/dev/trunk/solr/core/src/java/org/apache/solr/search/CollapsingQParserPlugin.java
(original)
+++ lucene/dev/trunk/solr/core/src/java/org/apache/solr/search/CollapsingQParserPlugin.java
Tue Nov 12 20:53:29 2013
@@ -317,6 +317,7 @@ public class CollapsingQParserPlugin ext
   private class DummyScorer extends Scorer {
 
     public float score;
+    public int docId;
 
     public DummyScorer() {
       super(null);
@@ -339,7 +340,7 @@ public class CollapsingQParserPlugin ext
     }
 
     public int docID() {
-      return 0;
+      return docId;
     }
 
     public long cost() {
@@ -474,6 +475,7 @@ public class CollapsingQParserPlugin ext
         }
 
         int contextDoc = docId-currentDocBase;
+        dummy.docId = contextDoc;
         delegate.collect(contextDoc);
       }
 
@@ -587,6 +589,7 @@ public class CollapsingQParserPlugin ext
         }
 
         int contextDoc = docId-currentDocBase;
+        dummy.docId = contextDoc;
         delegate.collect(contextDoc);
       }
 



Mime
View raw message