Module org.elasticsearch.server
Class PhraseSuggestion.Entry
java.lang.Object
org.elasticsearch.search.suggest.Suggest.Suggestion.Entry<PhraseSuggestion.Entry.Option>
org.elasticsearch.search.suggest.phrase.PhraseSuggestion.Entry
- All Implemented Interfaces:
Iterable<PhraseSuggestion.Entry.Option>,Writeable,ToXContent,ToXContentFragment
- Enclosing class:
PhraseSuggestion
public static class PhraseSuggestion.Entry
extends Suggest.Suggestion.Entry<PhraseSuggestion.Entry.Option>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.elasticsearch.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
FieldsFields inherited from class org.elasticsearch.search.suggest.Suggest.Suggestion.Entry
length, offset, options, OPTIONS, textFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleaninthashCode()protected voidMerge any extra fields for this subtype.protected PhraseSuggestion.Entry.OptionnewOption(StreamInput in) voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class org.elasticsearch.search.suggest.Suggest.Suggestion.Entry
addOptions, getLength, getOffset, getOptions, getText, iterator, reduce, sort, toXContentMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Field Details
-
cutoffScore
protected double cutoffScore
-
-
Constructor Details
-
Entry
-
Entry
-
Entry
public Entry() -
Entry
- Throws:
IOException
-
-
Method Details
-
merge
Description copied from class:Suggest.Suggestion.EntryMerge any extra fields for this subtype.- Overrides:
mergein classSuggest.Suggestion.Entry<PhraseSuggestion.Entry.Option>
-
addOption
- Overrides:
addOptionin classSuggest.Suggestion.Entry<PhraseSuggestion.Entry.Option>
-
newOption
- Specified by:
newOptionin classSuggest.Suggestion.Entry<PhraseSuggestion.Entry.Option>- Throws:
IOException
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classSuggest.Suggestion.Entry<PhraseSuggestion.Entry.Option>- Throws:
IOException
-
equals
- Overrides:
equalsin classSuggest.Suggestion.Entry<PhraseSuggestion.Entry.Option>
-
hashCode
public int hashCode()- Overrides:
hashCodein classSuggest.Suggestion.Entry<PhraseSuggestion.Entry.Option>
-