public class PhraseSuggestion extends Suggest.Suggestion<PhraseSuggestion.Entry>
PhraseSuggester.| Modifier and Type | Class and Description |
|---|---|
static class |
PhraseSuggestion.Entry |
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME |
static int |
TYPE |
entries, name, sizeEMPTY_PARAMS| Constructor and Description |
|---|
PhraseSuggestion() |
PhraseSuggestion(java.lang.String name,
int size) |
| Modifier and Type | Method and 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() |
addTerm, fromXContent, getEntries, getName, getSize, innerReadFrom, innerWriteTo, iterator, parseEntries, readFrom, reduce, sortComparator, toXContent, trim, writeToclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisFragmentpublic 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