Apache Lucene open-source search software
LUCENE-4801: lingering doc remnants from pre-4.0 similarity API
Chris M. Hostetterc3cd168f6a04
diff --git a/lucene/misc/src/java/org/apache/lucene/misc/SweetSpotSimilarity.java b/lucene/misc/src/java/org/apache/lucene/misc/SweetSpotSimilarity.javaindex 316c78a7a90..06f3cabd4a8 100644--- a/lucene/misc/src/java/org/apache/lucene/misc/SweetSpotSimilarity.java+++ b/lucene/misc/src/java/org/apache/lucene/misc/SweetSpotSimilarity.java@@ -21,21 +21,17 @@ import org.apache.lucene.search.similarities.DefaultSimilarity;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 DefaultSimilarity {* computeLengthNorm(numTokens) </code> where* numTokens does not count overlap tokens if* discountOverlaps is true by default or true for this- * specific field. */+ * specific field.+ */@Overridepublic float lengthNorm(FieldInvertState state) {final int numTokens;