public class PhraseSuggester extends BaseSuggester
Modifier and Type | Class and Description |
---|---|
static class |
PhraseSuggester.CandidateGenerator |
static class |
PhraseSuggester.Collate |
Suggester.Sort, Suggester.StringDistance, Suggester.SuggestMode
Constructor and Description |
---|
PhraseSuggester(String name,
String field) |
PhraseSuggester(String name,
String field,
String value) |
Modifier and Type | Method and Description |
---|---|
<T> T |
accept(SuggesterVisitor<T> suggesterVisitor) |
void |
addCandidateGenerator(PhraseSuggester.CandidateGenerator candidateGenerator) |
String |
getAnalyzer() |
Set<PhraseSuggester.CandidateGenerator> |
getCandidateGenerators() |
PhraseSuggester.Collate |
getCollate() |
Float |
getConfidence() |
Integer |
getGramSize() |
Float |
getMaxErrors() |
String |
getPostHighlightFilter() |
String |
getPreHighlightFilter() |
Float |
getRealWordErrorLikelihood() |
String |
getSeparator() |
Integer |
getShardSize() |
Integer |
getSize() |
Integer |
getTokenLimit() |
Boolean |
isForceUnigrams() |
void |
setAnalyzer(String analyzer) |
void |
setCollate(PhraseSuggester.Collate collate) |
void |
setConfidence(Float confidence) |
void |
setForceUnigrams(Boolean forceUnigrams) |
void |
setGramSize(Integer gramSize) |
void |
setMaxErrors(Float maxErrors) |
void |
setPostHighlightFilter(String postHighlightFilter) |
void |
setPreHighlightFilter(String preHighlightFilter) |
void |
setRealWordErrorLikelihood(Float realWordErrorLikelihood) |
void |
setSeparator(String separator) |
void |
setShardSize(Integer shardSize) |
void |
setSize(Integer size) |
void |
setTokenLimit(Integer tokenLimit) |
getField, getName, getValue, setValue
public PhraseSuggester(String name, String field)
public PhraseSuggester(String name, String field, String value)
public <T> T accept(SuggesterVisitor<T> suggesterVisitor)
public void addCandidateGenerator(PhraseSuggester.CandidateGenerator candidateGenerator)
public String getAnalyzer()
public Set<PhraseSuggester.CandidateGenerator> getCandidateGenerators()
public PhraseSuggester.Collate getCollate()
public Float getConfidence()
public Integer getGramSize()
public Float getMaxErrors()
public String getPostHighlightFilter()
public String getPreHighlightFilter()
public Float getRealWordErrorLikelihood()
public String getSeparator()
public Integer getShardSize()
public Integer getSize()
public Integer getTokenLimit()
public Boolean isForceUnigrams()
public void setAnalyzer(String analyzer)
public void setCollate(PhraseSuggester.Collate collate)
public void setConfidence(Float confidence)
public void setForceUnigrams(Boolean forceUnigrams)
public void setGramSize(Integer gramSize)
public void setMaxErrors(Float maxErrors)
public void setPostHighlightFilter(String postHighlightFilter)
public void setPreHighlightFilter(String preHighlightFilter)
public void setRealWordErrorLikelihood(Float realWordErrorLikelihood)
public void setSeparator(String separator)
public void setShardSize(Integer shardSize)
public void setSize(Integer size)
public void setTokenLimit(Integer tokenLimit)