Package | Description |
---|---|
org.elasticsearch.search.suggest | |
org.elasticsearch.search.suggest.term |
Modifier and Type | Method and Description |
---|---|
static TermSuggestionBuilder |
SuggestBuilders.termSuggestion(String name)
Creates a term suggestion lookup query with the provided
name |
Modifier and Type | Method and Description |
---|---|
TermSuggestionBuilder |
TermSuggestionBuilder.maxEdits(Integer maxEdits)
Sets the maximum edit distance candidate suggestions can have in order to
be considered as a suggestion.
|
TermSuggestionBuilder |
TermSuggestionBuilder.maxInspections(Integer maxInspections)
A factor that is used to multiply with the size in order to inspect more
candidate suggestions.
|
TermSuggestionBuilder |
TermSuggestionBuilder.maxTermFreq(float maxTermFreq)
Sets a maximum threshold in number of documents a suggest text token can
exist in order to be corrected.
|
TermSuggestionBuilder |
TermSuggestionBuilder.minDocFreq(float minDocFreq)
Sets a minimal threshold in number of documents a suggested term should
appear in.
|
TermSuggestionBuilder |
TermSuggestionBuilder.minWordLength(int minWordLength)
The minimum length a suggest text term must have in order to be
corrected.
|
TermSuggestionBuilder |
TermSuggestionBuilder.prefixLength(int prefixLength)
Sets the number of minimal prefix characters that must match in order be
a candidate suggestion.
|
TermSuggestionBuilder |
TermSuggestionBuilder.setAccuracy(float accuracy)
s how similar the suggested terms at least need to be compared to the
original suggest text tokens.
|
TermSuggestionBuilder |
TermSuggestionBuilder.sort(String sort)
Sets how to sort the suggest terms per suggest text token.
|
TermSuggestionBuilder |
TermSuggestionBuilder.stringDistance(String stringDistance)
Sets what string distance implementation to use for comparing how similar
suggested terms are.
|
TermSuggestionBuilder |
TermSuggestionBuilder.suggestMode(String suggestMode)
The global suggest mode controls what suggested terms are included or
controls for what suggest text tokens, terms should be suggested for.
|
Copyright © 2009–2015. All rights reserved.