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,org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.ToXContentFragment
- Enclosing class:
- CompletionSuggestion.Entry
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsFields inherited from class org.elasticsearch.search.suggest.Suggest.Suggestion.Entry.Option
COLLATE_MATCH, HIGHLIGHTED, SCORE, TEXTFields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromXContent(org.elasticsearch.common.xcontent.XContentParser parser)org.apache.lucene.search.ScoreDocgetDoc()getHit()protected voidmergeInto(Suggest.Suggestion.Entry.Option otherOption)voidvoidsetShardIndex(int shardIndex)toString()org.elasticsearch.common.xcontent.XContentBuildertoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.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, setScoreMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
Field Details
-
CONTEXTS
public static final org.elasticsearch.common.xcontent.ParseField CONTEXTS
-
-
Constructor Details
-
Option
-
Option
- Throws:
IOException
-
-
Method Details
-
mergeInto
- Overrides:
mergeIntoin classSuggest.Suggestion.Entry.Option
-
getContexts
-
getDoc
public org.apache.lucene.search.ScoreDoc getDoc() -
getHit
-
setShardIndex
public void setShardIndex(int shardIndex) -
setHit
-
toXContent
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException- Specified by:
toXContentin interfaceorg.elasticsearch.common.xcontent.ToXContent- Overrides:
toXContentin classSuggest.Suggestion.Entry.Option- Throws:
IOException
-
fromXContent
public static CompletionSuggestion.Entry.Option fromXContent(org.elasticsearch.common.xcontent.XContentParser parser) -
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classSuggest.Suggestion.Entry.Option- Throws:
IOException
-
toString
-