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:
Writeable,ToXContent,ToXContentFragment
- 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.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields Modifier and Type Field Description static ParseFieldCONTEXTSFields inherited from class org.elasticsearch.search.suggest.Suggest.Suggestion.Entry.Option
COLLATE_MATCH, HIGHLIGHTED, SCORE, TEXT -
Constructor Summary
Constructors Constructor Description Option(int docID, Text text, float score, java.util.Map<java.lang.String,java.util.Set<java.lang.String>> contexts)Option(StreamInput in) -
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 voidmergeInto(Suggest.Suggestion.Entry.Option otherOption)voidsetHit(SearchHit hit)voidsetShardIndex(int shardIndex)java.lang.StringtoString()XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)voidwriteTo(StreamOutput out)Write this into the StreamOutput.Methods inherited from class org.elasticsearch.search.suggest.Suggest.Suggestion.Entry.Option
collateMatch, equals, getHighlighted, getScore, getText, hashCode, setScore
-
Field Details
-
Constructor Details
-
Method Details
-
mergeInto
- 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
-
setShardIndex
public void setShardIndex(int shardIndex) -
setHit
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException- Specified by:
toXContentin interfaceToXContent- Overrides:
toXContentin classSuggest.Suggestion.Entry.Option- Throws:
java.io.IOException
-
fromXContent
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classSuggest.Suggestion.Entry.Option- Throws:
java.io.IOException
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-