public static enum TermSuggestionBuilder.SuggestMode extends java.lang.Enum<TermSuggestionBuilder.SuggestMode> implements Writeable
Writeable.Reader<V>, Writeable.Writer<V>| Enum Constant and Description |
|---|
ALWAYS
Suggest any matching suggest terms based on tokens in the suggest text.
|
MISSING
Only suggest terms in the suggest text that aren't in the index.
|
POPULAR
Only suggest terms that occur in more docs then the original suggest text term.
|
| Modifier and Type | Method and Description |
|---|---|
static TermSuggestionBuilder.SuggestMode |
readFromStream(StreamInput in) |
static TermSuggestionBuilder.SuggestMode |
resolve(java.lang.String str) |
abstract org.apache.lucene.search.spell.SuggestMode |
toLucene() |
static TermSuggestionBuilder.SuggestMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TermSuggestionBuilder.SuggestMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
void |
writeTo(StreamOutput out)
Write this into the StreamOutput.
|
public static final TermSuggestionBuilder.SuggestMode MISSING
public static final TermSuggestionBuilder.SuggestMode POPULAR
public static final TermSuggestionBuilder.SuggestMode ALWAYS
public static TermSuggestionBuilder.SuggestMode[] values()
for (TermSuggestionBuilder.SuggestMode c : TermSuggestionBuilder.SuggestMode.values()) System.out.println(c);
public static TermSuggestionBuilder.SuggestMode valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic void writeTo(StreamOutput out) throws java.io.IOException
Writeablepublic static TermSuggestionBuilder.SuggestMode readFromStream(StreamInput in) throws java.io.IOException
java.io.IOExceptionpublic static TermSuggestionBuilder.SuggestMode resolve(java.lang.String str)
public abstract org.apache.lucene.search.spell.SuggestMode toLucene()