Class TermSuggestOption
java.lang.Object
co.elastic.clients.elasticsearch.core.search.TermSuggestOption
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class TermSuggestOption extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
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
Modifier and Type Method Description longfreq()Required - 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:textMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forTermSuggestOption
-
-
Method Details
-
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
public final long freq()Required - API name:freq -
score
public final double score()Required - API name:score -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupTermSuggestOptionDeserializer
protected static void setupTermSuggestOptionDeserializer(ObjectDeserializer<TermSuggestOption.Builder> op)
-