Class TermSuggestOption
java.lang.Object
co.elastic.clients.elasticsearch.core.search.TermSuggestOption
- All Implemented Interfaces:
JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<TermSuggestOption>Json deserializer forTermSuggestOption -
Method Summary
Modifier and TypeMethodDescriptionfinal BooleanAPI name:collate_matchfinal longfreq()Required - API name:freqfinal 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:texttoString()
-
Field Details
-
_DESERIALIZER
Json deserializer forTermSuggestOption
-
-
Method Details
-
of
public static TermSuggestOption of(Function<TermSuggestOption.Builder, ObjectBuilder<TermSuggestOption>> fn) -
text
Required - API name:text -
score
public final double score()Required - API name:score -
freq
public final long freq()Required - API name:freq -
highlighted
API name:highlighted -
collateMatch
API name:collate_match -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupTermSuggestOptionDeserializer
protected static void setupTermSuggestOptionDeserializer(ObjectDeserializer<TermSuggestOption.Builder> op)
-