Class CompletionSuggestOption<TDocument>
java.lang.Object
org.opensearch.client.opensearch.core.search.CompletionSuggestOption<TDocument>
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<CompletionSuggestOption.Builder<TDocument>,CompletionSuggestOption<TDocument>>
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class CompletionSuggestOption<TDocument>
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<CompletionSuggestOption.Builder<TDocument>,CompletionSuggestOption<TDocument>>
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic <TDocument>
CompletionSuggestOption.Builderbuilder()final BooleanAPI name:collate_matchcontexts()API name:contextsstatic <TDocument>
JsonpDeserializer<CompletionSuggestOption<TDocument>> createCompletionSuggestOptionDeserializer(JsonpDeserializer<TDocument> tDocumentDeserializer) Create a JSON deserializer for CompletionSuggestOption.booleanfields()API name:fieldsinthashCode()final Stringid()API name:_idfinal Stringindex()API name:_indexstatic <TDocument>
CompletionSuggestOption<TDocument> of(Function<CompletionSuggestOption.Builder<TDocument>, ObjectBuilder<CompletionSuggestOption<TDocument>>> fn) final Stringrouting()API name:_routingfinal Floatscore()API name:_scorevoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static <TDocument>
voidsetupCompletionSuggestOptionDeserializer(ObjectDeserializer<CompletionSuggestOption.Builder<TDocument>> op, JsonpDeserializer<TDocument> tDocumentDeserializer) final TDocumentsource()API name:_sourcefinal JsonpSerializer<TDocument> Serializer forTDocument.final Stringtext()Required - API name:textCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Method Details
-
of
public static <TDocument> CompletionSuggestOption<TDocument> of(Function<CompletionSuggestOption.Builder<TDocument>, ObjectBuilder<CompletionSuggestOption<TDocument>>> fn) -
collateMatch
API name:collate_match -
contexts
API name:contexts -
fields
API name:fields -
id
API name:_id -
index
API name:_index -
routing
API name:_routing -
score
API name:_score -
source
API name:_source -
tDocumentSerializer
Serializer forTDocument. If not set, an attempt will be made to find a serializer from the JSON context. -
text
Required - API name:text -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<CompletionSuggestOption.Builder<TDocument>,CompletionSuggestOption<TDocument>> - Returns:
- a new builder instance.
-
builder
-
createCompletionSuggestOptionDeserializer
public static <TDocument> JsonpDeserializer<CompletionSuggestOption<TDocument>> createCompletionSuggestOptionDeserializer(JsonpDeserializer<TDocument> tDocumentDeserializer) Create a JSON deserializer for CompletionSuggestOption. -
setupCompletionSuggestOptionDeserializer
protected static <TDocument> void setupCompletionSuggestOptionDeserializer(ObjectDeserializer<CompletionSuggestOption.Builder<TDocument>> op, JsonpDeserializer<TDocument> tDocumentDeserializer) -
hashCode
public int hashCode() -
equals
-