lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r780404 - /lucene/java/trunk/contrib/miscellaneous/src/test/org/apache/lucene/misc/SweetSpotSimilarityTest.java
Date Sun, 31 May 2009 10:37:10 GMT
Author: mikemccand
Date: Sun May 31 10:37:09 2009
New Revision: 780404

URL: http://svn.apache.org/viewvc?rev=780404&view=rev
Log:
fix SSS unit test

Modified:
    lucene/java/trunk/contrib/miscellaneous/src/test/org/apache/lucene/misc/SweetSpotSimilarityTest.java

Modified: lucene/java/trunk/contrib/miscellaneous/src/test/org/apache/lucene/misc/SweetSpotSimilarityTest.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/miscellaneous/src/test/org/apache/lucene/misc/SweetSpotSimilarityTest.java?rev=780404&r1=780403&r2=780404&view=diff
==============================================================================
--- lucene/java/trunk/contrib/miscellaneous/src/test/org/apache/lucene/misc/SweetSpotSimilarityTest.java
(original)
+++ lucene/java/trunk/contrib/miscellaneous/src/test/org/apache/lucene/misc/SweetSpotSimilarityTest.java
Sun May 31 10:37:09 2009
@@ -84,8 +84,8 @@
 
     // seperate sweet spot for certain fields
 
-    ss.setLengthNormFactors("bar",8,13, 0.5f);
-    ss.setLengthNormFactors("yak",6,9, 0.5f);
+    ss.setLengthNormFactors("bar",8,13, 0.5f, false);
+    ss.setLengthNormFactors("yak",6,9, 0.5f, false);
 
   
     for (int i = 3; i <=10; i++) {
@@ -122,8 +122,8 @@
 
     // steepness
 
-    ss.setLengthNormFactors("a",5,8,0.5f);
-    ss.setLengthNormFactors("b",5,8,0.1f);
+    ss.setLengthNormFactors("a",5,8,0.5f, false);
+    ss.setLengthNormFactors("b",5,8,0.1f, false);
 
     for (int i = 9; i < 1000; i++) {
       assertTrue("s: i="+i+" : a="+ss.lengthNorm("a",i)+



Mime
View raw message