Apache Lucene open-source search software
LUCENE-722: DEFAULT spelled DEFALT in MoreLikeThis.java
Daniel Naber5cf957527faa
diff --git a/CHANGES.txt b/CHANGES.txtindex f3253af2669..ba576ea44c1 100644--- a/CHANGES.txt+++ b/CHANGES.txt@@ -125,6 +125,12 @@ API ChangesLucene to work correctly over NFS (second step isLUCENE-710). (Mike McCandless)+11. LUCENE-722: DEFAULT_MIN_DOC_FREQ was misspelled DEFALT_MIN_DOC_FREQ+ in Similarity's MoreLikeThis class. The misspelling has been+ replaced by the correct spelling.+ (Andi Vajda via Daniel Naber)++Bug fixes1. Fixed the web application demo (built with "ant war-demo") whichdiff --git a/contrib/similarity/src/java/org/apache/lucene/search/similar/MoreLikeThis.java b/contrib/similarity/src/java/org/apache/lucene/search/similar/MoreLikeThis.javaindex 3cee02282fc..9a47acfcb82 100755--- a/contrib/similarity/src/java/org/apache/lucene/search/similar/MoreLikeThis.java+++ b/contrib/similarity/src/java/org/apache/lucene/search/similar/MoreLikeThis.java@@ -175,7 +175,7 @@ public final class MoreLikeThis {* @see #getMinDocFreq* @see #setMinDocFreq*/- public static final int DEFALT_MIN_DOC_FREQ = 5;+ public static final int DEFAULT_MIN_DOC_FREQ = 5;/*** Boost terms in query based on score.@@ -240,7 +240,7 @@ public final class MoreLikeThis {/*** Ignore words which do not occur in at least this many docs.*/- private int minDocFreq = DEFALT_MIN_DOC_FREQ;+ private int minDocFreq = DEFAULT_MIN_DOC_FREQ;/*** Should we apply a boost to the Query based on the scores?@@ -333,7 +333,7 @@ public final class MoreLikeThis {/*** Returns the frequency at which words will be ignored which do not occur in at least this- * many docs. The default frequency is {@link #DEFALT_MIN_DOC_FREQ}.+ * many docs. The default frequency is {@link #DEFAULT_MIN_DOC_FREQ}.** @return the frequency at which words will be ignored which do not occur in at least this* many docs.