Class Suggester
java.lang.Object
org.opensearch.client.opensearch.core.search.Suggester
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<Suggester.Builder,Suggester>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class Suggester
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<Suggester.Builder,Suggester>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<Suggester> Json deserializer forSuggester -
Method Summary
Modifier and TypeMethodDescriptionstatic Suggester.Builderbuilder()booleaninthashCode()static Suggestervoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal Map<String, FieldSuggester> The named suggesters.final Stringtext()The global suggest text, which avoids repetition when the same text is used in several suggesters.Create a new builderToCopyableBuilderthat is initialised with the current state of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forSuggester
-
-
Method Details
-
of
-
suggesters
The named suggesters. -
text
The global suggest text, which avoids repetition when the same text is used in several suggesters.API name:
text -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<Suggester.Builder,Suggester> - Returns:
- a new builder instance.
-
builder
-
setupSuggesterDeserializer
-
hashCode
public int hashCode() -
equals
-