lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject svn commit: r1695133 - /lucene/dev/trunk/solr/core/src/java/org/apache/solr/query/FilterQuery.java
Date Mon, 10 Aug 2015 16:45:23 GMT
Author: yonik
Date: Mon Aug 10 16:45:23 2015
New Revision: 1695133

URL: http://svn.apache.org/r1695133
Log:
SOLR-7219: use SolrConstantScoreQuery to fix 5x filter() break

Modified:
    lucene/dev/trunk/solr/core/src/java/org/apache/solr/query/FilterQuery.java

Modified: lucene/dev/trunk/solr/core/src/java/org/apache/solr/query/FilterQuery.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/java/org/apache/solr/query/FilterQuery.java?rev=1695133&r1=1695132&r2=1695133&view=diff
==============================================================================
--- lucene/dev/trunk/solr/core/src/java/org/apache/solr/query/FilterQuery.java (original)
+++ lucene/dev/trunk/solr/core/src/java/org/apache/solr/query/FilterQuery.java Mon Aug 10
16:45:23 2015
@@ -27,6 +27,7 @@ import org.apache.lucene.search.Weight;
 import org.apache.lucene.util.ToStringUtils;
 import org.apache.solr.search.DocSet;
 import org.apache.solr.search.ExtendedQueryBase;
+import org.apache.solr.search.SolrConstantScoreQuery;
 import org.apache.solr.search.SolrIndexSearcher;
 
 public class FilterQuery extends ExtendedQueryBase {
@@ -91,7 +92,7 @@ public class FilterQuery extends Extende
     DocSet docs = solrSearcher.getDocSet(q);
     // reqInfo.addCloseHook(docs);  // needed for off-heap refcounting
 
-    ConstantScoreQuery csq = new ConstantScoreQuery( docs.getTopFilter() );
+    SolrConstantScoreQuery csq = new SolrConstantScoreQuery( docs.getTopFilter() );
     csq.setBoost( this.getBoost() );
     return csq.createWeight(searcher, needScores);
   }



Mime
View raw message