Class CompletionSuggestion.Entry.Option
- java.lang.Object
-
- org.elasticsearch.search.suggest.Suggest.Suggestion.Entry.Option
-
- org.elasticsearch.search.suggest.completion.CompletionSuggestion.Entry.Option
-
- All Implemented Interfaces:
Streamable,ToXContent,ToXContentObject
- Enclosing class:
- CompletionSuggestion.Entry
public static class CompletionSuggestion.Entry.Option extends Suggest.Suggestion.Entry.Option
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
-
Field Summary
Fields Modifier and Type Field Description static ParseFieldCONTEXTS-
Fields inherited from class org.elasticsearch.search.suggest.Suggest.Suggestion.Entry.Option
COLLATE_MATCH, HIGHLIGHTED, SCORE, TEXT
-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Method Summary
Modifier and Type Method Description static CompletionSuggestion.Entry.OptionfromXContent(XContentParser parser)java.util.Map<java.lang.String,java.util.Set<java.lang.String>>getContexts()org.apache.lucene.search.ScoreDocgetDoc()SearchHitgetHit()protected XContentBuilderinnerToXContent(XContentBuilder builder, ToXContent.Params params)protected voidmergeInto(Suggest.Suggestion.Entry.Option otherOption)voidreadFrom(StreamInput in)Set this object's fields from a StreamInput.voidsetHit(SearchHit hit)voidsetShardIndex(int shardIndex)java.lang.StringtoString()voidwriteTo(StreamOutput out)Write this object's fields to a StreamOutput.-
Methods inherited from class org.elasticsearch.search.suggest.Suggest.Suggestion.Entry.Option
collateMatch, equals, getHighlighted, getScore, getText, hashCode, setScore, toXContent
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
-
-
-
-
Field Detail
-
CONTEXTS
public static final ParseField CONTEXTS
-
-
Constructor Detail
-
Option
public Option(int docID, Text text, float score, java.util.Map<java.lang.String,java.util.Set<java.lang.String>> contexts)
-
Option
protected Option()
-
-
Method Detail
-
mergeInto
protected void mergeInto(Suggest.Suggestion.Entry.Option otherOption)
- Overrides:
mergeIntoin classSuggest.Suggestion.Entry.Option
-
getContexts
public java.util.Map<java.lang.String,java.util.Set<java.lang.String>> getContexts()
-
getDoc
public org.apache.lucene.search.ScoreDoc getDoc()
-
getHit
public SearchHit getHit()
-
setShardIndex
public void setShardIndex(int shardIndex)
-
setHit
public void setHit(SearchHit hit)
-
innerToXContent
protected XContentBuilder innerToXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
- Overrides:
innerToXContentin classSuggest.Suggestion.Entry.Option- Throws:
java.io.IOException
-
fromXContent
public static CompletionSuggestion.Entry.Option fromXContent(XContentParser parser)
-
readFrom
public void readFrom(StreamInput in) throws java.io.IOException
Description copied from interface:StreamableSet this object's fields from a StreamInput.- Specified by:
readFromin interfaceStreamable- Overrides:
readFromin classSuggest.Suggestion.Entry.Option- Throws:
java.io.IOException
-
writeTo
public void writeTo(StreamOutput out) throws java.io.IOException
Description copied from interface:StreamableWrite this object's fields to a StreamOutput.- Specified by:
writeToin interfaceStreamable- Overrides:
writeToin classSuggest.Suggestion.Entry.Option- Throws:
java.io.IOException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-