Class TermSuggestOption
- java.lang.Object
-
- org.opensearch.client.opensearch.core.search.TermSuggestOption
-
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class TermSuggestOption extends java.lang.Object implements JsonpSerializable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTermSuggestOption.BuilderBuilder forTermSuggestOption.
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<TermSuggestOption>_DESERIALIZERJson deserializer forTermSuggestOption
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Longfreq()API name:freqstatic TermSuggestOptionof(java.util.function.Function<TermSuggestOption.Builder,ObjectBuilder<TermSuggestOption>> fn)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 voidsetupTermSuggestOptionDeserializer(ObjectDeserializer<TermSuggestOption.Builder> op)java.lang.Stringtext()Required - API name:text
-
-
-
Field Detail
-
_DESERIALIZER
public static final JsonpDeserializer<TermSuggestOption> _DESERIALIZER
Json deserializer forTermSuggestOption
-
-
Method Detail
-
of
public static TermSuggestOption of(java.util.function.Function<TermSuggestOption.Builder,ObjectBuilder<TermSuggestOption>> fn)
-
text
public final java.lang.String text()
Required - API name:text
-
freq
@Nullable public final java.lang.Long freq()
API name:freq
-
score
public final double score()
Required - API name:score
-
serialize
public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
-
setupTermSuggestOptionDeserializer
protected static void setupTermSuggestOptionDeserializer(ObjectDeserializer<TermSuggestOption.Builder> op)
-
-