public class DirectSpellcheckerSettings
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static float |
DEFAULT_ACCURACY |
static int |
DEFAULT_MAX_EDITS |
static int |
DEFAULT_MAX_INSPECTIONS |
static float |
DEFAULT_MAX_TERM_FREQ |
static float |
DEFAULT_MIN_DOC_FREQ |
static int |
DEFAULT_MIN_WORD_LENGTH |
static int |
DEFAULT_PREFIX_LENGTH |
static SortBy |
DEFAULT_SORT |
static org.apache.lucene.search.spell.StringDistance |
DEFAULT_STRING_DISTANCE |
static org.apache.lucene.search.spell.SuggestMode |
DEFAULT_SUGGEST_MODE |
Constructor and Description |
---|
DirectSpellcheckerSettings() |
Modifier and Type | Method and Description |
---|---|
float |
accuracy() |
void |
accuracy(float accuracy) |
org.apache.lucene.search.spell.DirectSpellChecker |
createDirectSpellChecker() |
int |
maxEdits() |
void |
maxEdits(int maxEdits) |
int |
maxInspections() |
void |
maxInspections(int maxInspections) |
float |
maxTermFreq() |
void |
maxTermFreq(float maxTermFreq) |
float |
minDocFreq() |
void |
minDocFreq(float minDocFreq) |
int |
minWordLength() |
void |
minWordLength(int minWordLength) |
int |
prefixLength() |
void |
prefixLength(int prefixLength) |
SortBy |
sort() |
void |
sort(SortBy sort) |
org.apache.lucene.search.spell.StringDistance |
stringDistance() |
void |
stringDistance(org.apache.lucene.search.spell.StringDistance distance) |
org.apache.lucene.search.spell.SuggestMode |
suggestMode() |
void |
suggestMode(org.apache.lucene.search.spell.SuggestMode suggestMode) |
java.lang.String |
toString() |
public static org.apache.lucene.search.spell.SuggestMode DEFAULT_SUGGEST_MODE
public static float DEFAULT_ACCURACY
public static SortBy DEFAULT_SORT
public static org.apache.lucene.search.spell.StringDistance DEFAULT_STRING_DISTANCE
public static int DEFAULT_MAX_EDITS
public static int DEFAULT_MAX_INSPECTIONS
public static float DEFAULT_MAX_TERM_FREQ
public static int DEFAULT_PREFIX_LENGTH
public static int DEFAULT_MIN_WORD_LENGTH
public static float DEFAULT_MIN_DOC_FREQ
public org.apache.lucene.search.spell.SuggestMode suggestMode()
public void suggestMode(org.apache.lucene.search.spell.SuggestMode suggestMode)
public float accuracy()
public void accuracy(float accuracy)
public SortBy sort()
public void sort(SortBy sort)
public org.apache.lucene.search.spell.StringDistance stringDistance()
public void stringDistance(org.apache.lucene.search.spell.StringDistance distance)
public int maxEdits()
public void maxEdits(int maxEdits)
public int maxInspections()
public void maxInspections(int maxInspections)
public float maxTermFreq()
public void maxTermFreq(float maxTermFreq)
public int prefixLength()
public void prefixLength(int prefixLength)
public int minWordLength()
public void minWordLength(int minWordLength)
public float minDocFreq()
public void minDocFreq(float minDocFreq)
public org.apache.lucene.search.spell.DirectSpellChecker createDirectSpellChecker()
public java.lang.String toString()
toString
in class java.lang.Object