java.lang.Object
org.elasticsearch.search.suggest.Suggest.Suggestion<TermSuggestion.Entry>
org.elasticsearch.search.suggest.term.TermSuggestion
- All Implemented Interfaces:
Iterable<TermSuggestion.Entry>,NamedWriteable,Writeable,ToXContent,ToXContentFragment
The suggestion responses corresponding with the suggestions in the request.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents a part from the suggest text with suggested options.static classstatic classNested 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
FieldsModifier and TypeFieldDescriptionstatic final Comparator<Suggest.Suggestion.Entry.Option> static final Comparator<Suggest.Suggestion.Entry.Option> Fields inherited from class org.elasticsearch.search.suggest.Suggest.Suggestion
entries, name, sizeFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the name of the writeable objectinthashCode()protected TermSuggestion.EntrynewEntry(StreamInput in) protected Comparator<Suggest.Suggestion.Entry.Option> voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class org.elasticsearch.search.suggest.Suggest.Suggestion
addTerm, getEntries, getName, getSize, iterator, reduce, toXContent, trimMethods 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
-
SCORE
-
FREQUENCY
-
-
Constructor Details
-
TermSuggestion
-
TermSuggestion
- Throws:
IOException
-
-
Method Details
-
sortComparator
- Overrides:
sortComparatorin classSuggest.Suggestion<TermSuggestion.Entry>
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classSuggest.Suggestion<TermSuggestion.Entry>- Throws:
IOException
-
getWriteableName
Description copied from interface:NamedWriteableReturns the name of the writeable object- Specified by:
getWriteableNamein interfaceNamedWriteable- Specified by:
getWriteableNamein classSuggest.Suggestion<TermSuggestion.Entry>
-
newEntry
- Specified by:
newEntryin classSuggest.Suggestion<TermSuggestion.Entry>- Throws:
IOException
-
equals
- Overrides:
equalsin classSuggest.Suggestion<TermSuggestion.Entry>
-
hashCode
public int hashCode()- Overrides:
hashCodein classSuggest.Suggestion<TermSuggestion.Entry>
-