Streamable
, ToXContent
, ToXContentObject
public static class CompletionSuggestion.Entry.Option extends Suggest.Suggestion.Entry.Option
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Modifier and Type | Field | Description |
---|---|---|
static ParseField |
CONTEXTS |
COLLATE_MATCH, HIGHLIGHTED, SCORE, TEXT
EMPTY_PARAMS
Modifier | Constructor | Description |
---|---|---|
protected |
Option() |
|
|
Option(int docID,
Text text,
float score,
java.util.Map<java.lang.String,java.util.Set<java.lang.CharSequence>> contexts) |
Modifier and Type | Method | Description |
---|---|---|
static CompletionSuggestion.Entry.Option |
fromXContent(XContentParser parser) |
|
java.util.Map<java.lang.String,java.util.Set<java.lang.CharSequence>> |
getContexts() |
|
org.apache.lucene.search.ScoreDoc |
getDoc() |
|
SearchHit |
getHit() |
|
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.
|
void |
setHit(SearchHit hit) |
|
void |
setShardIndex(int shardIndex) |
|
java.lang.String |
toString() |
|
void |
writeTo(StreamOutput out) |
Write this object's fields to a StreamOutput.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
collateMatch, equals, getHighlighted, getScore, getText, hashCode, setScore, toXContent
isFragment
public static final ParseField CONTEXTS
public Option(int docID, Text text, float score, java.util.Map<java.lang.String,java.util.Set<java.lang.CharSequence>> contexts)
protected Option()
protected void mergeInto(Suggest.Suggestion.Entry.Option otherOption)
mergeInto
in class Suggest.Suggestion.Entry.Option
public java.util.Map<java.lang.String,java.util.Set<java.lang.CharSequence>> getContexts()
public org.apache.lucene.search.ScoreDoc getDoc()
public SearchHit getHit()
public void setShardIndex(int shardIndex)
public void setHit(SearchHit hit)
protected XContentBuilder innerToXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
innerToXContent
in class Suggest.Suggestion.Entry.Option
java.io.IOException
public static CompletionSuggestion.Entry.Option fromXContent(XContentParser parser)
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
readFrom
in class Suggest.Suggestion.Entry.Option
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
writeTo
in class Suggest.Suggestion.Entry.Option
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object