public static class Suggest.Suggestion.Entry<O extends Suggest.Suggestion .Entry .Option > extends Objectimplements Iterable <O>, Streamable , ToXContent
| Modifier and Type | Class and Description |
|---|---|
static class |
Suggest
Contains the suggested text with its document frequency and score.
|
ToXContent.DelegatingMapParams , ToXContent.MapParams , ToXContent.Params | Modifier and Type | Field and Description |
|---|---|
protected int |
length
|
protected int |
offset
|
protected List |
options
|
protected Text |
text
|
EMPTY_PARAMS| Constructor and Description |
|---|
Entry()
|
Entry(Text
|
| Modifier and Type | Method and Description |
|---|---|
void |
addOption(O option)
|
boolean |
equals(Object
|
int |
getLength()
|
int |
getOffset()
|
List |
getOptions()
|
Text |
getText()
|
int |
hashCode()
|
Iterator |
iterator()
|
protected void |
merge(Suggest
Merge any extra fields for this subtype.
|
protected O |
newOption()
|
void |
readFrom(StreamInput
|
protected <T extends Suggest |
reduce(List
|
protected void |
sort(Comparator
|
XContentBuilder |
toXContent(XContentBuilder
|
void |
writeTo(StreamOutput
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorprotected Texttext
protected int offset
protected int length
protected List<O extends Suggest .Suggestion .Entry .Option > options
public Entry(Texttext, int offset, int length)
public Entry()
public void addOption(O option)
protected void sort(Comparator<O> comparator)
protected <T extends Suggest.Suggestion .Entry <O>> Suggest .Suggestion .Entry <O> reduce(List <T> toReduce)
protected void merge(Suggest.Suggestion .Entry <O> other)
public TextgetText()
public int getOffset()
public int getLength()
public List<O> getOptions()
public boolean equals(Objecto)
public int hashCode()
public void readFrom(StreamInputin) throws IOException
readFrom in interface
Streamable
IOException
protected O newOption()
public void writeTo(StreamOutputout) throws IOException
writeTo in interface
Streamable
IOException
public XContentBuildertoXContent(XContentBuilder builder, ToXContent .Params params) throws IOException
toXContent in interface
ToXContent
IOException