Class CompletionSuggest<TDocument>
- java.lang.Object
-
- org.opensearch.client.opensearch.core.search.SuggestBase
-
- org.opensearch.client.opensearch.core.search.CompletionSuggest<TDocument>
-
- All Implemented Interfaces:
JsonpSerializable,SuggestVariant
@JsonpDeserializable public class CompletionSuggest<TDocument> extends SuggestBase implements SuggestVariant
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCompletionSuggest.Builder<TDocument>-
Nested classes/interfaces inherited from class org.opensearch.client.opensearch.core.search.SuggestBase
SuggestBase.AbstractBuilder<BuilderT extends SuggestBase.AbstractBuilder<BuilderT>>
-
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<CompletionSuggest<java.lang.Object>>_DESERIALIZER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Suggest.Kind_suggestionKind()static <TDocument>
JsonpDeserializer<CompletionSuggest<TDocument>>createCompletionSuggestDeserializer(JsonpDeserializer<TDocument> tDocumentDeserializer)static <TDocument>
CompletionSuggest<TDocument>of(java.util.function.Function<CompletionSuggest.Builder<TDocument>,ObjectBuilder<CompletionSuggest<TDocument>>> fn)java.util.List<CompletionSuggestOption<TDocument>>options()protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static <TDocument>
voidsetupCompletionSuggestDeserializer(ObjectDeserializer<CompletionSuggest.Builder<TDocument>> op, JsonpDeserializer<TDocument> tDocumentDeserializer)-
Methods inherited from class org.opensearch.client.opensearch.core.search.SuggestBase
length, offset, serialize, setupSuggestBaseDeserializer, text
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opensearch.client.opensearch.core.search.SuggestVariant
_toSuggestion
-
-
-
-
Field Detail
-
_DESERIALIZER
public static final JsonpDeserializer<CompletionSuggest<java.lang.Object>> _DESERIALIZER
-
-
Method Detail
-
of
public static <TDocument> CompletionSuggest<TDocument> of(java.util.function.Function<CompletionSuggest.Builder<TDocument>,ObjectBuilder<CompletionSuggest<TDocument>>> fn)
-
options
public final java.util.List<CompletionSuggestOption<TDocument>> options()
-
serializeInternal
protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)- Overrides:
serializeInternalin classSuggestBase
-
createCompletionSuggestDeserializer
public static <TDocument> JsonpDeserializer<CompletionSuggest<TDocument>> createCompletionSuggestDeserializer(JsonpDeserializer<TDocument> tDocumentDeserializer)
-
setupCompletionSuggestDeserializer
protected static <TDocument> void setupCompletionSuggestDeserializer(ObjectDeserializer<CompletionSuggest.Builder<TDocument>> op, JsonpDeserializer<TDocument> tDocumentDeserializer)
-
_suggestionKind
public Suggest.Kind _suggestionKind()
- Specified by:
_suggestionKindin interfaceSuggestVariant
-
-