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 java.lang.BooleancollateMatch()API name:collate_matchlongfreq()Required - API name:freqjava.lang.Stringhighlighted()API name:highlightedstatic 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:textjava.lang.StringtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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 -
score
public final double score()Required - API name:score -
freq
public final long freq()Required - API name:freq -
highlighted
@Nullable public final java.lang.String highlighted()API name:highlighted -
collateMatch
@Nullable public final java.lang.Boolean collateMatch()API name:collate_match -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
setupTermSuggestOptionDeserializer
protected static void setupTermSuggestOptionDeserializer(ObjectDeserializer<TermSuggestOption.Builder> op)
-