Class TermSuggestOption
java.lang.Object
org.opensearch.client.opensearch.core.search.TermSuggestOption
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<TermSuggestOption.Builder,TermSuggestOption>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class TermSuggestOption
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<TermSuggestOption.Builder,TermSuggestOption>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<TermSuggestOption> Json deserializer forTermSuggestOption -
Method Summary
Modifier and TypeMethodDescriptionstatic TermSuggestOption.Builderbuilder()final BooleanAPI name:collate_matchbooleanfinal Longfreq()API name:freqinthashCode()final StringAPI name:highlightedstatic TermSuggestOptionfinal doublescore()Required - 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 voidfinal 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
-
Field Details
-
_DESERIALIZER
Json deserializer forTermSuggestOption
-
-
Method Details
-
of
public static TermSuggestOption of(Function<TermSuggestOption.Builder, ObjectBuilder<TermSuggestOption>> fn) -
collateMatch
API name:collate_match -
freq
API name:freq -
highlighted
API name:highlighted -
score
public final double score()Required - API name:score -
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<TermSuggestOption.Builder,TermSuggestOption> - Returns:
- a new builder instance.
-
builder
-
setupTermSuggestOptionDeserializer
protected static void setupTermSuggestOptionDeserializer(ObjectDeserializer<TermSuggestOption.Builder> op) -
hashCode
public int hashCode() -
equals
-