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