lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jpou...@apache.org
Subject svn commit: r1687561 - /lucene/dev/branches/branch_5x/solr/core/src/java/org/apache/solr/search/HashQParserPlugin.java
Date Thu, 25 Jun 2015 15:38:54 GMT
Author: jpountz
Date: Thu Jun 25 15:38:54 2015
New Revision: 1687561

URL: http://svn.apache.org/r1687561
Log:
Make sure HashQParserPlugin calls rewrite before createWeight.

Modified:
    lucene/dev/branches/branch_5x/solr/core/src/java/org/apache/solr/search/HashQParserPlugin.java

Modified: lucene/dev/branches/branch_5x/solr/core/src/java/org/apache/solr/search/HashQParserPlugin.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/solr/core/src/java/org/apache/solr/search/HashQParserPlugin.java?rev=1687561&r1=1687560&r2=1687561&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/solr/core/src/java/org/apache/solr/search/HashQParserPlugin.java
(original)
+++ lucene/dev/branches/branch_5x/solr/core/src/java/org/apache/solr/search/HashQParserPlugin.java
Thu Jun 25 15:38:54 2015
@@ -148,7 +148,7 @@ public class HashQParserPlugin extends Q
       }
 
       ConstantScoreQuery constantScoreQuery = new ConstantScoreQuery(new BitsFilter(fixedBitSets));
-      return constantScoreQuery.createWeight(searcher, false);
+      return searcher.rewrite(constantScoreQuery).createWeight(searcher, false);
     }
 
     public class BitsFilter extends Filter {



Mime
View raw message