I was hitting this too -- I just committed a fix to the unit test to use the non-deprecated method.
Mike On Sun, May 31, 2009 at 12:10 AM, <o...@apache.org> wrote: > 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/SweetSpotSimilarity.java > > Modified: > lucene/java/trunk/contrib/miscellaneous/src/java/org/apache/lucene/misc/SweetSpotSimilarity.java > URL: > http://svn.apache.org/viewvc/lucene/java/trunk/contrib/miscellaneous/src/java/org/apache/lucene/misc/SweetSpotSimilarity.java?rev=780363&r1=780362&r2=780363&view=diff > ============================================================================== > --- > lucene/java/trunk/contrib/miscellaneous/src/java/org/apache/lucene/misc/SweetSpotSimilarity.java > (original) > +++ > lucene/java/trunk/contrib/miscellaneous/src/java/org/apache/lucene/misc/SweetSpotSimilarity.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