You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by mv...@apache.org on 2013/01/16 14:49:33 UTC

svn commit: r1433933 - /lucene/dev/trunk/lucene/suggest/src/java/org/apache/lucene/search/spell/DirectSpellChecker.java

Author: mvg
Date: Wed Jan 16 13:49:33 2013
New Revision: 1433933

URL: http://svn.apache.org/viewvc?rev=1433933&view=rev
Log:
LUCENE-4684: Made fields private again (2).

Modified:
    lucene/dev/trunk/lucene/suggest/src/java/org/apache/lucene/search/spell/DirectSpellChecker.java

Modified: lucene/dev/trunk/lucene/suggest/src/java/org/apache/lucene/search/spell/DirectSpellChecker.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/suggest/src/java/org/apache/lucene/search/spell/DirectSpellChecker.java?rev=1433933&r1=1433932&r2=1433933&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/suggest/src/java/org/apache/lucene/search/spell/DirectSpellChecker.java (original)
+++ lucene/dev/trunk/lucene/suggest/src/java/org/apache/lucene/search/spell/DirectSpellChecker.java Wed Jan 16 13:49:33 2013
@@ -65,28 +65,28 @@ public class DirectSpellChecker {
   public static final StringDistance INTERNAL_LEVENSHTEIN = new LuceneLevenshteinDistance();
 
   /** maximum edit distance for candidate terms */
-  public int maxEdits = LevenshteinAutomata.MAXIMUM_SUPPORTED_DISTANCE;
+  private int maxEdits = LevenshteinAutomata.MAXIMUM_SUPPORTED_DISTANCE;
   /** minimum prefix for candidate terms */
-  public int minPrefix = 1;
+  private int minPrefix = 1;
   /** maximum number of top-N inspections per suggestion */
-  public int maxInspections = 5;
+  private int maxInspections = 5;
   /** minimum accuracy for a term to match */
-  public float accuracy = SpellChecker.DEFAULT_ACCURACY;
+  private float accuracy = SpellChecker.DEFAULT_ACCURACY;
   /** value in [0..1] (or absolute number >=1) representing the minimum
     * number of documents (of the total) where a term should appear. */
-  public float thresholdFrequency = 0f;
+  private float thresholdFrequency = 0f;
   /** minimum length of a query word to return suggestions */
-  public int minQueryLength = 4;
+  private int minQueryLength = 4;
   /** value in [0..1] (or absolute number >=1) representing the maximum
    *  number of documents (of the total) a query term can appear in to
    *  be corrected. */
-  public float maxQueryFrequency = 0.01f;
+  private float maxQueryFrequency = 0.01f;
   /** true if the spellchecker should lowercase terms */
-  public boolean lowerCaseTerms = true;
+  private boolean lowerCaseTerms = true;
   /** the comparator to use */
-  public Comparator<SuggestWord> comparator = SuggestWordQueue.DEFAULT_COMPARATOR;
+  private Comparator<SuggestWord> comparator = SuggestWordQueue.DEFAULT_COMPARATOR;
   /** the string distance to use */
-  public StringDistance distance = INTERNAL_LEVENSHTEIN;
+  private StringDistance distance = INTERNAL_LEVENSHTEIN;
 
   /** Creates a DirectSpellChecker with default configuration values */
   public DirectSpellChecker() {}