lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject svn commit: r633564 - /lucene/solr/trunk/src/java/org/apache/solr/search/BoostQParserPlugin.java
Date Tue, 04 Mar 2008 17:42:47 GMT
Author: yonik
Date: Tue Mar  4 09:42:44 2008
New Revision: 633564

URL: http://svn.apache.org/viewvc?rev=633564&view=rev
Log:
create QueryValueSource from boost, not from main query

Modified:
    lucene/solr/trunk/src/java/org/apache/solr/search/BoostQParserPlugin.java

Modified: lucene/solr/trunk/src/java/org/apache/solr/search/BoostQParserPlugin.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/search/BoostQParserPlugin.java?rev=633564&r1=633563&r2=633564&view=diff
==============================================================================
--- lucene/solr/trunk/src/java/org/apache/solr/search/BoostQParserPlugin.java (original)
+++ lucene/solr/trunk/src/java/org/apache/solr/search/BoostQParserPlugin.java Tue Mar  4 09:42:44
2008
@@ -56,7 +56,7 @@
         if (bq instanceof FunctionQuery) {
           vs = ((FunctionQuery)bq).getValueSource();
         } else {
-          vs = new QueryValueSource(q, 0.0f);
+          vs = new QueryValueSource(bq, 0.0f);
         }
         return new BoostedQuery(q, vs);
       }



Mime
View raw message