lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mharw...@apache.org
Subject svn commit: r492830 - /lucene/java/trunk/contrib/queries/src/java/org/apache/lucene/search/FuzzyLikeThisQuery.java
Date Fri, 05 Jan 2007 00:18:33 GMT
Author: mharwood
Date: Thu Jan  4 16:18:32 2007
New Revision: 492830

URL: http://svn.apache.org/viewvc?view=rev&rev=492830
Log:
Fix to apply any custom boost setting when the Query is rewritten

Modified:
    lucene/java/trunk/contrib/queries/src/java/org/apache/lucene/search/FuzzyLikeThisQuery.java

Modified: lucene/java/trunk/contrib/queries/src/java/org/apache/lucene/search/FuzzyLikeThisQuery.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/queries/src/java/org/apache/lucene/search/FuzzyLikeThisQuery.java?view=diff&rev=492830&r1=492829&r2=492830
==============================================================================
--- lucene/java/trunk/contrib/queries/src/java/org/apache/lucene/search/FuzzyLikeThisQuery.java
(original)
+++ lucene/java/trunk/contrib/queries/src/java/org/apache/lucene/search/FuzzyLikeThisQuery.java
Thu Jan  4 16:18:32 2007
@@ -211,7 +211,7 @@
         }
         //TODO possible alternative step 3 - organize above booleans into a new layer of
field-based
         // booleans with a minimum-should-match of NumFields-1?
-        
+        bq.setBoost(getBoost());
         this.rewrittenQuery=bq;
         return bq;
     }



Mime
View raw message