java.lang.Iterable<PhraseSuggestion.Entry>, Streamable, ToXContent, ToXContentFragmentpublic class PhraseSuggestion extends Suggest.Suggestion<PhraseSuggestion.Entry>
PhraseSuggester.| Modifier and Type | Class | Description |
|---|---|---|
static class |
PhraseSuggestion.Entry |
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
NAME |
|
static int |
TYPE |
entries, name, sizeEMPTY_PARAMS| Constructor | Description |
|---|---|
PhraseSuggestion() |
|
PhraseSuggestion(java.lang.String name,
int size) |
| Modifier and Type | Method | Description |
|---|---|---|
static PhraseSuggestion |
fromXContent(XContentParser parser,
java.lang.String name) |
|
protected java.lang.String |
getType() |
Returns a string representing the type of the suggestion.
|
int |
getWriteableType() |
Returns a integer representing the type of the suggestion.
|
protected PhraseSuggestion.Entry |
newEntry() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddTerm, fromXContent, getEntries, getName, getSize, innerReadFrom, innerWriteTo, iterator, parseEntries, readFrom, reduce, sortComparator, toXContent, trim, writeToisFragmentpublic static final java.lang.String NAME
public static final int TYPE
public PhraseSuggestion()
public PhraseSuggestion(java.lang.String name,
int size)
public int getWriteableType()
Suggest.SuggestiongetWriteableType in class Suggest.Suggestion<PhraseSuggestion.Entry>protected java.lang.String getType()
Suggest.SuggestiongetType in class Suggest.Suggestion<PhraseSuggestion.Entry>protected PhraseSuggestion.Entry newEntry()
newEntry in class Suggest.Suggestion<PhraseSuggestion.Entry>public static PhraseSuggestion fromXContent(XContentParser parser, java.lang.String name) throws java.io.IOException
java.io.IOException