Package org.elasticsearch.search.suggest
Class DirectSpellcheckerSettings
java.lang.Object
org.elasticsearch.search.suggest.DirectSpellcheckerSettings
-
Field Summary
Modifier and TypeFieldDescriptionstatic float
static int
static int
static float
static float
static int
static int
static SortBy
static org.apache.lucene.search.spell.StringDistance
static org.apache.lucene.search.spell.SuggestMode
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
accuracy()
void
accuracy(float accuracy)
org.apache.lucene.search.spell.DirectSpellChecker
int
maxEdits()
void
maxEdits(int maxEdits)
int
void
maxInspections(int maxInspections)
float
void
maxTermFreq(float maxTermFreq)
float
void
minDocFreq(float minDocFreq)
int
void
minWordLength(int minWordLength)
int
void
prefixLength(int prefixLength)
sort()
void
org.apache.lucene.search.spell.StringDistance
void
stringDistance(org.apache.lucene.search.spell.StringDistance distance)
org.apache.lucene.search.spell.SuggestMode
void
suggestMode(org.apache.lucene.search.spell.SuggestMode suggestMode)
toString()
-
Field Details
-
DEFAULT_SUGGEST_MODE
public static org.apache.lucene.search.spell.SuggestMode DEFAULT_SUGGEST_MODE -
DEFAULT_ACCURACY
public static float DEFAULT_ACCURACY -
DEFAULT_SORT
-
DEFAULT_STRING_DISTANCE
public static org.apache.lucene.search.spell.StringDistance DEFAULT_STRING_DISTANCE -
DEFAULT_MAX_EDITS
public static int DEFAULT_MAX_EDITS -
DEFAULT_MAX_INSPECTIONS
public static int DEFAULT_MAX_INSPECTIONS -
DEFAULT_MAX_TERM_FREQ
public static float DEFAULT_MAX_TERM_FREQ -
DEFAULT_PREFIX_LENGTH
public static int DEFAULT_PREFIX_LENGTH -
DEFAULT_MIN_WORD_LENGTH
public static int DEFAULT_MIN_WORD_LENGTH -
DEFAULT_MIN_DOC_FREQ
public static float DEFAULT_MIN_DOC_FREQ
-
-
Constructor Details
-
DirectSpellcheckerSettings
public DirectSpellcheckerSettings()
-
-
Method Details
-
suggestMode
public org.apache.lucene.search.spell.SuggestMode suggestMode() -
suggestMode
public void suggestMode(org.apache.lucene.search.spell.SuggestMode suggestMode) -
accuracy
public float accuracy() -
accuracy
public void accuracy(float accuracy) -
sort
-
sort
-
stringDistance
public org.apache.lucene.search.spell.StringDistance stringDistance() -
stringDistance
public void stringDistance(org.apache.lucene.search.spell.StringDistance distance) -
maxEdits
public int maxEdits() -
maxEdits
public void maxEdits(int maxEdits) -
maxInspections
public int maxInspections() -
maxInspections
public void maxInspections(int maxInspections) -
maxTermFreq
public float maxTermFreq() -
maxTermFreq
public void maxTermFreq(float maxTermFreq) -
prefixLength
public int prefixLength() -
prefixLength
public void prefixLength(int prefixLength) -
minWordLength
public int minWordLength() -
minWordLength
public void minWordLength(int minWordLength) -
minDocFreq
public float minDocFreq() -
minDocFreq
public void minDocFreq(float minDocFreq) -
createDirectSpellChecker
public org.apache.lucene.search.spell.DirectSpellChecker createDirectSpellChecker() -
toString
-