public class PhraseSuggestion extends Suggest.Suggestion<PhraseSuggestion.Entry>
PhraseSuggester.| Modifier and Type | Class and Description |
|---|---|
static class |
PhraseSuggestion.Entry |
Suggest.Suggestion.SortToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field and Description |
|---|---|
static int |
TYPE |
entries, name, sizeEMPTY_PARAMS| Constructor and Description |
|---|
PhraseSuggestion() |
PhraseSuggestion(String name,
int size) |
| Modifier and Type | Method and Description |
|---|---|
int |
getType() |
protected PhraseSuggestion.Entry |
newEntry() |
addTerm, getEntries, getName, innerReadFrom, innerWriteTo, iterator, readFrom, reduce, sortComparator, toXContent, trim, writeTopublic static final int TYPE
public PhraseSuggestion()
public PhraseSuggestion(String name, int size)
public int getType()
getType in class Suggest.Suggestion<PhraseSuggestion.Entry>protected PhraseSuggestion.Entry newEntry()
newEntry in class Suggest.Suggestion<PhraseSuggestion.Entry>Copyright © 2009–2017. All rights reserved.