Hi Otis, this change caused form me: common.compile-test: [mkdir] Created dir: C:\Projects\lucene\trunk\build\contrib\misc\classes\test [javac] Compiling 7 source files to C:\Projects\lucene\trunk\build\contrib\misc\classes\test [javac] C:\Projects\lucene\trunk\contrib\miscellaneous\src\test\org\apache\lucene\mi sc\SweetSpotSimilarityTest.java:87: cannot find symbol [javac] symbol : method setLengthNormFactors(java.lang.String,int,int,float) [javac] location: class org.apache.lucene.misc.SweetSpotSimilarity [javac] ss.setLengthNormFactors("bar",8,13, 0.5f); [javac] ^ [javac] C:\Projects\lucene\trunk\contrib\miscellaneous\src\test\org\apache\l ucene\misc\SweetSpotSimilarityTest.java:88: cannot find symbol [javac] symbol : method setLengthNormFactors(java.lang.String,int,int,float) [javac] location: class org.apache.lucene.misc.SweetSpotSimilarity [javac] ss.setLengthNormFactors("yak",6,9, 0.5f); [javac] ^ [javac] C:\Projects\lucene\trunk\contrib\miscellaneous\src\test\org\apache\l ucene\misc\SweetSpotSimilarityTest.java:125: cannot find symbol [javac] symbol : method setLengthNormFactors(java.lang.String,int,int,float) [javac] location: class org.apache.lucene.misc.SweetSpotSimilarity [javac] ss.setLengthNormFactors("a",5,8,0.5f); [javac] ^ [javac] C:\Projects\lucene\trunk\contrib\miscellaneous\src\test\org\apache\l ucene\misc\SweetSpotSimilarityTest.java:126: cannot find symbol [javac] symbol : method setLengthNormFactors(java.lang.String,int,int,float) [javac] location: class org.apache.lucene.misc.SweetSpotSimilarity [javac] ss.setLengthNormFactors("b",5,8,0.1f); [javac] ^ [javac] Note: Some input files use or override a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [javac] 4 errors
----- Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: u...@thetaphi.de > -----Original Message----- > From: o...@apache.org [mailto:o...@apache.org] > Sent: Sunday, May 31, 2009 6:11 AM > To: java-comm...@lucene.apache.org > Subject: svn commit: r780363 - > /lucene/java/trunk/contrib/miscellaneous/src/java/org/apache/lucene/misc/S > weetSpotSimilarity.java > > Author: otis > Date: Sun May 31 04:10:35 2009 > New Revision: 780363 > > URL: http://svn.apache.org/viewvc?rev=780363&view=rev > Log: > - Removed an ancient deprecated method and fixed misspellings > > Modified: > > lucene/java/trunk/contrib/miscellaneous/src/java/org/apache/lucene/misc/Sw > eetSpotSimilarity.java > > Modified: > lucene/java/trunk/contrib/miscellaneous/src/java/org/apache/lucene/misc/Sw > eetSpotSimilarity.java > URL: > http://svn.apache.org/viewvc/lucene/java/trunk/contrib/miscellaneous/src/j > ava/org/apache/lucene/misc/SweetSpotSimilarity.java?rev=780363&r1=780362&r > 2=780363&view=diff > ========================================================================== > ==== > --- > lucene/java/trunk/contrib/miscellaneous/src/java/org/apache/lucene/misc/Sw > eetSpotSimilarity.java (original) > +++ > lucene/java/trunk/contrib/miscellaneous/src/java/org/apache/lucene/misc/Sw > eetSpotSimilarity.java Sun May 31 04:10:35 2009 > @@ -25,12 +25,12 @@ > import java.util.HashMap; > > /** > - * A similarity with a lengthNorm that provides for a "platuea" of > + * A similarity with a lengthNorm that provides for a "plateau" of > * equally good lengths, and tf helper functions. > * > * <p> > * For lengthNorm, A global min/max can be specified to define the > - * platuea of lengths that should all have a norm of 1.0. > + * plateau of lengths that should all have a norm of 1.0. > * Below the min, and above the max the lengthNorm drops off in a > * sqrt function. > * </p> > @@ -108,25 +108,6 @@ > } > > /** > - * Sets the function variables used by lengthNorm for a > - * specific named field. > - * > - * @deprecated Please call {...@link #setLengthNormFactors(String, > - * int, int, float, boolean)} instead. > - * > - * @param field field name > - * @param min minimum value > - * @param max maximum value > - * @param steepness steepness of the curve > - * > - * @see #lengthNorm > - */ > - public void setLengthNormFactors(String field, int min, int max, > - float steepness) { > - setLengthNormFactors(field, min, max, steepness, false); > - } > - > - /** > * Sets the function variables used by lengthNorm for a specific named > field. > * > * @param field field name > @@ -180,7 +161,7 @@ > * </p> > * > * <p> > - * :TODO: potential optimiation is to just flat out return 1.0f if > numTerms > + * :TODO: potential optimization is to just flat out return 1.0f if > numTerms > * is between min and max. > * </p> > * > @@ -244,8 +225,6 @@ > : (float)Math.sqrt(freq + (tf_base * tf_base) - tf_min); > } > > - > - > /** > * Uses a hyperbolic tangent function that allows for a hard max... > * > @@ -286,4 +265,3 @@ > } > > } > - > --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org For additional commands, e-mail: java-dev-h...@lucene.apache.org