lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hoss...@apache.org
Subject svn commit: r1450342 - /lucene/dev/trunk/lucene/misc/src/java/org/apache/lucene/misc/SweetSpotSimilarity.java
Date Tue, 26 Feb 2013 18:33:17 GMT
Author: hossman
Date: Tue Feb 26 18:33:17 2013
New Revision: 1450342

URL: http://svn.apache.org/r1450342
Log:
LUCENE-4801: lingering doc remnants from pre-4.0 similarity API

Modified:
    lucene/dev/trunk/lucene/misc/src/java/org/apache/lucene/misc/SweetSpotSimilarity.java

Modified: lucene/dev/trunk/lucene/misc/src/java/org/apache/lucene/misc/SweetSpotSimilarity.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/misc/src/java/org/apache/lucene/misc/SweetSpotSimilarity.java?rev=1450342&r1=1450341&r2=1450342&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/misc/src/java/org/apache/lucene/misc/SweetSpotSimilarity.java
(original)
+++ lucene/dev/trunk/lucene/misc/src/java/org/apache/lucene/misc/SweetSpotSimilarity.java
Tue Feb 26 18:33:17 2013
@@ -21,21 +21,17 @@ import org.apache.lucene.search.similari
 import org.apache.lucene.index.FieldInvertState;
 
 /**
+ * <p>
  * A similarity with a lengthNorm that provides for a "plateau" of
  * equally good lengths, and tf helper functions.
- *
+ * </p>
  * <p>
- * For lengthNorm, A global min/max can be specified to define the
+ * For lengthNorm, A min/max can be specified to define the
  * 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>
  * <p>
- * A per field min/max can be specified if different fields have
- * different sweet spots.
- * </p>
- *
- * <p>
  * For tf, baselineTf and hyperbolicTf functions are provided, which
  * subclasses can choose between.
  * </p>
@@ -105,7 +101,8 @@ public class SweetSpotSimilarity extends
    * computeLengthNorm(numTokens) </code> where
    * numTokens does not count overlap tokens if
    * discountOverlaps is true by default or true for this
-   * specific field. */
+   * specific field. 
+   */
   @Override
   public float lengthNorm(FieldInvertState state) {
     final int numTokens;



Mime
View raw message