Class PhraseSuggestOption
- java.lang.Object
-
- org.opensearch.client.opensearch.core.search.PhraseSuggestOption
-
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class PhraseSuggestOption extends java.lang.Object implements JsonpSerializable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPhraseSuggestOption.BuilderBuilder forPhraseSuggestOption.
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<PhraseSuggestOption>_DESERIALIZERJson deserializer forPhraseSuggestOption
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringhighlighted()API name:highlightedstatic PhraseSuggestOptionof(java.util.function.Function<PhraseSuggestOption.Builder,ObjectBuilder<PhraseSuggestOption>> 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 voidsetupPhraseSuggestOptionDeserializer(ObjectDeserializer<PhraseSuggestOption.Builder> op)java.lang.Stringtext()Required - API name:text
-
-
-
Field Detail
-
_DESERIALIZER
public static final JsonpDeserializer<PhraseSuggestOption> _DESERIALIZER
Json deserializer forPhraseSuggestOption
-
-
Method Detail
-
of
public static PhraseSuggestOption of(java.util.function.Function<PhraseSuggestOption.Builder,ObjectBuilder<PhraseSuggestOption>> fn)
-
text
public final java.lang.String text()
Required - API name:text
-
highlighted
@Nullable public final java.lang.String highlighted()
API name:highlighted
-
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)
-
setupPhraseSuggestOptionDeserializer
protected static void setupPhraseSuggestOptionDeserializer(ObjectDeserializer<PhraseSuggestOption.Builder> op)
-
-