public class TermSuggester extends BaseSuggester
Suggester.Sort, Suggester.StringDistance, Suggester.SuggestMode
Constructor and Description |
---|
TermSuggester(String name,
String field) |
TermSuggester(String name,
String field,
String value) |
Modifier and Type | Method and Description |
---|---|
<T> T |
accept(SuggesterVisitor<T> suggesterVisitor) |
Float |
getAccuracy() |
String |
getAnalyzer() |
Integer |
getMaxEdits() |
Integer |
getMaxInspections() |
Integer |
getMaxTermFreq() |
Integer |
getMinDocFreq() |
Integer |
getMinWordLength() |
Integer |
getPrefixLength() |
Integer |
getShardSize() |
Integer |
getSize() |
Suggester.Sort |
getSort() |
Suggester.StringDistance |
getStringDistance() |
Suggester.SuggestMode |
getSuggestMode() |
void |
setAccuracy(Float accuracy) |
void |
setAnalyzer(String analyzer) |
void |
setMaxEdits(Integer maxEdits) |
void |
setMaxInspections(Integer maxInspections) |
void |
setMaxTermFreq(Integer maxTermFreq) |
void |
setMinDocFreq(Integer minDocFreq) |
void |
setMinWordLength(Integer minWordLength) |
void |
setPrefixLength(Integer prefixLength) |
void |
setShardSize(Integer shardSize) |
void |
setSize(Integer size) |
void |
setSort(Suggester.Sort sort) |
void |
setStringDistance(Suggester.StringDistance stringDistance) |
void |
setSuggestMode(Suggester.SuggestMode suggestMode) |
getField, getName, getValue, setValue
public TermSuggester(String name, String field)
public TermSuggester(String name, String field, String value)
public <T> T accept(SuggesterVisitor<T> suggesterVisitor)
public Float getAccuracy()
public String getAnalyzer()
public Integer getMaxEdits()
public Integer getMaxInspections()
public Integer getMaxTermFreq()
public Integer getMinDocFreq()
public Integer getMinWordLength()
public Integer getPrefixLength()
public Integer getShardSize()
public Integer getSize()
public Suggester.Sort getSort()
public Suggester.StringDistance getStringDistance()
public Suggester.SuggestMode getSuggestMode()
public void setAccuracy(Float accuracy)
public void setAnalyzer(String analyzer)
public void setMaxEdits(Integer maxEdits)
public void setMaxInspections(Integer maxInspections)
public void setMaxTermFreq(Integer maxTermFreq)
public void setMinDocFreq(Integer minDocFreq)
public void setMinWordLength(Integer minWordLength)
public void setPrefixLength(Integer prefixLength)
public void setShardSize(Integer shardSize)
public void setSize(Integer size)
public void setSort(Suggester.Sort sort)
public void setStringDistance(Suggester.StringDistance stringDistance)
public void setSuggestMode(Suggester.SuggestMode suggestMode)