public static class Suggest.Suggestion.Entry.Option extends java.lang.Object implements Streamable, ToXContentObject
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field and Description |
|---|---|
static ParseField |
COLLATE_MATCH |
static ParseField |
HIGHLIGHTED |
static ParseField |
SCORE |
static ParseField |
TEXT |
EMPTY_PARAMS| Constructor and Description |
|---|
Option() |
Option(Text text,
float score) |
Option(Text text,
Text highlighted,
float score) |
Option(Text text,
Text highlighted,
float score,
java.lang.Boolean collateMatch) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
collateMatch() |
boolean |
equals(java.lang.Object o) |
static Suggest.Suggestion.Entry.Option |
fromXContent(XContentParser parser) |
Text |
getHighlighted() |
float |
getScore() |
Text |
getText() |
int |
hashCode() |
protected XContentBuilder |
innerToXContent(XContentBuilder builder,
ToXContent.Params params) |
protected void |
mergeInto(Suggest.Suggestion.Entry.Option otherOption) |
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
protected void |
setScore(float score) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitisFragmentpublic static final ParseField TEXT
public static final ParseField HIGHLIGHTED
public static final ParseField SCORE
public static final ParseField COLLATE_MATCH
public Option(Text text, float score)
public Option()
public Text getText()
public Text getHighlighted()
public float getScore()
public boolean collateMatch()
trueprotected void setScore(float score)
public void readFrom(StreamInput in) throws java.io.IOException
StreamablereadFrom in interface Streamablejava.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
StreamablewriteTo in interface Streamablejava.io.IOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent in interface ToXContentjava.io.IOExceptionprotected XContentBuilder innerToXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
java.io.IOExceptionpublic static Suggest.Suggestion.Entry.Option fromXContent(XContentParser parser)
protected void mergeInto(Suggest.Suggestion.Entry.Option otherOption)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object