Class StupidBackoffSmoothingModel
java.lang.Object
co.elastic.clients.elasticsearch.core.search.StupidBackoffSmoothingModel
- All Implemented Interfaces:
SmoothingModelVariant,JsonpSerializable
@JsonpDeserializable
public class StupidBackoffSmoothingModel
extends Object
implements SmoothingModelVariant, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<StupidBackoffSmoothingModel>Json deserializer forStupidBackoffSmoothingModel -
Method Summary
Modifier and TypeMethodDescriptionSmoothingModel variant kind.final doublediscount()Required - A constant factor that the lower order n-gram model is discounted by.static StupidBackoffSmoothingModelvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidsetupStupidBackoffSmoothingModelDeserializer(ObjectDeserializer<StupidBackoffSmoothingModel.Builder> op) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface co.elastic.clients.elasticsearch.core.search.SmoothingModelVariant
_toSmoothingModel
-
Field Details
-
_DESERIALIZER
Json deserializer forStupidBackoffSmoothingModel
-
-
Method Details
-
of
-
_smoothingModelKind
SmoothingModel variant kind.- Specified by:
_smoothingModelKindin interfaceSmoothingModelVariant
-
discount
public final double discount()Required - A constant factor that the lower order n-gram model is discounted by.API name:
discount -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupStupidBackoffSmoothingModelDeserializer
protected static void setupStupidBackoffSmoothingModelDeserializer(ObjectDeserializer<StupidBackoffSmoothingModel.Builder> op)
-