You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@lucene.apache.org by mh...@apache.org on 2007/01/05 01:18:33 UTC
svn commit: r492830 -
/lucene/java/trunk/contrib/queries/src/java/org/apache/lucene/search/FuzzyLikeThisQuery.java
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;
}