Class PhraseSuggestion
java.lang.Object
org.elasticsearch.search.suggest.Suggest.Suggestion<PhraseSuggestion.Entry>
org.elasticsearch.search.suggest.phrase.PhraseSuggestion
- All Implemented Interfaces:
Iterable<PhraseSuggestion.Entry>,NamedWriteable,Writeable,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentFragment
Suggestion entry returned from the
PhraseSuggester.-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields inherited from class org.elasticsearch.search.suggest.Suggest.Suggestion
entries, name, size, TYPEFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PhraseSuggestionfromXContent(org.elasticsearch.xcontent.XContentParser parser, String name) Returns the name of the writeable objectprotected PhraseSuggestion.EntrynewEntry(StreamInput in) Methods inherited from class org.elasticsearch.search.suggest.Suggest.Suggestion
addTerm, equals, fromXContent, getEntries, getName, getSize, hashCode, iterator, parseEntries, reduce, sortComparator, toXContent, trim, writeToMethods 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
-
Constructor Details
-
PhraseSuggestion
-
PhraseSuggestion
- Throws:
IOException
-
-
Method Details
-
getWriteableName
Description copied from interface:NamedWriteableReturns the name of the writeable object- Specified by:
getWriteableNamein interfaceNamedWriteable- Specified by:
getWriteableNamein classSuggest.Suggestion<PhraseSuggestion.Entry>
-
newEntry
- Specified by:
newEntryin classSuggest.Suggestion<PhraseSuggestion.Entry>- Throws:
IOException
-
fromXContent
public static PhraseSuggestion fromXContent(org.elasticsearch.xcontent.XContentParser parser, String name) throws IOException - Throws:
IOException
-