Discovery Engine V1 API - Class Google::Cloud::DiscoveryEngine::V1::SearchRequest::BoostSpec::ConditionBoostSpec::BoostControlSpec::ControlPoint (v1.4.0)

Reference documentation and code samples for the Discovery Engine V1 API class Google::Cloud::DiscoveryEngine::V1::SearchRequest::BoostSpec::ConditionBoostSpec::BoostControlSpec::ControlPoint.

The control points used to define the curve. The curve defined through these control points can only be monotonically increasing or decreasing(constant values are acceptable).

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#attribute_value

def attribute_value() -> ::String
Returns
  • (::String) —

    Can be one of:

    1. The numerical field value.
    2. The duration spec for freshness: The value must be formatted as an XSD dayTimeDuration value (a restricted subset of an ISO 8601 duration value). The pattern for this is: [nD][T[nH][nM][nS]].

#attribute_value=

def attribute_value=(value) -> ::String
Parameter
  • value (::String) —

    Can be one of:

    1. The numerical field value.
    2. The duration spec for freshness: The value must be formatted as an XSD dayTimeDuration value (a restricted subset of an ISO 8601 duration value). The pattern for this is: [nD][T[nH][nM][nS]].
Returns
  • (::String) —

    Can be one of:

    1. The numerical field value.
    2. The duration spec for freshness: The value must be formatted as an XSD dayTimeDuration value (a restricted subset of an ISO 8601 duration value). The pattern for this is: [nD][T[nH][nM][nS]].

#boost_amount

def boost_amount() -> ::Float
Returns
  • (::Float) — The value between -1 to 1 by which to boost the score if the attribute_value evaluates to the value specified above.

#boost_amount=

def boost_amount=(value) -> ::Float
Parameter
  • value (::Float) — The value between -1 to 1 by which to boost the score if the attribute_value evaluates to the value specified above.
Returns
  • (::Float) — The value between -1 to 1 by which to boost the score if the attribute_value evaluates to the value specified above.