Reference documentation and code samples for the Discovery Engine V1 API class Google::Cloud::DiscoveryEngine::V1::Control::BoostAction.
Adjusts order of products in returned list.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#boost
def boost() -> ::Float
- (::Float) — Strength of the boost, which should be in [-1, 1]. Negative boost means demotion. Default is 0.0 (No-op).
#boost=
def boost=(value) -> ::Float
- value (::Float) — Strength of the boost, which should be in [-1, 1]. Negative boost means demotion. Default is 0.0 (No-op).
- (::Float) — Strength of the boost, which should be in [-1, 1]. Negative boost means demotion. Default is 0.0 (No-op).
#data_store
def data_store() -> ::String
- (::String) — Required. Specifies which data store's documents can be boosted by this control. Full data store name e.g. projects/123/locations/global/collections/default_collection/dataStores/default_data_store
#data_store=
def data_store=(value) -> ::String
- value (::String) — Required. Specifies which data store's documents can be boosted by this control. Full data store name e.g. projects/123/locations/global/collections/default_collection/dataStores/default_data_store
- (::String) — Required. Specifies which data store's documents can be boosted by this control. Full data store name e.g. projects/123/locations/global/collections/default_collection/dataStores/default_data_store
#filter
def filter() -> ::String
-
(::String) — Required. Specifies which products to apply the boost to.
If no filter is provided all products will be boosted (No-op). Syntax documentation: https://cloud.google.com/retail/docs/filter-and-order Maximum length is 5000 characters. Otherwise an INVALID ARGUMENT error is thrown.
#filter=
def filter=(value) -> ::String
-
value (::String) — Required. Specifies which products to apply the boost to.
If no filter is provided all products will be boosted (No-op). Syntax documentation: https://cloud.google.com/retail/docs/filter-and-order Maximum length is 5000 characters. Otherwise an INVALID ARGUMENT error is thrown.
-
(::String) — Required. Specifies which products to apply the boost to.
If no filter is provided all products will be boosted (No-op). Syntax documentation: https://cloud.google.com/retail/docs/filter-and-order Maximum length is 5000 characters. Otherwise an INVALID ARGUMENT error is thrown.
#fixed_boost
def fixed_boost() -> ::Float
-
(::Float) — Optional. Strength of the boost, which should be in [-1, 1]. Negative
boost means demotion. Default is 0.0 (No-op).
Note: The following fields are mutually exclusive:
fixed_boost
,interpolation_boost_spec
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#fixed_boost=
def fixed_boost=(value) -> ::Float
-
value (::Float) — Optional. Strength of the boost, which should be in [-1, 1]. Negative
boost means demotion. Default is 0.0 (No-op).
Note: The following fields are mutually exclusive:
fixed_boost
,interpolation_boost_spec
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Float) — Optional. Strength of the boost, which should be in [-1, 1]. Negative
boost means demotion. Default is 0.0 (No-op).
Note: The following fields are mutually exclusive:
fixed_boost
,interpolation_boost_spec
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#interpolation_boost_spec
def interpolation_boost_spec() -> ::Google::Cloud::DiscoveryEngine::V1::Control::BoostAction::InterpolationBoostSpec
-
(::Google::Cloud::DiscoveryEngine::V1::Control::BoostAction::InterpolationBoostSpec) — Optional. Complex specification for custom ranking based on customer
defined attribute value.
Note: The following fields are mutually exclusive:
interpolation_boost_spec
,fixed_boost
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#interpolation_boost_spec=
def interpolation_boost_spec=(value) -> ::Google::Cloud::DiscoveryEngine::V1::Control::BoostAction::InterpolationBoostSpec
-
value (::Google::Cloud::DiscoveryEngine::V1::Control::BoostAction::InterpolationBoostSpec) — Optional. Complex specification for custom ranking based on customer
defined attribute value.
Note: The following fields are mutually exclusive:
interpolation_boost_spec
,fixed_boost
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::DiscoveryEngine::V1::Control::BoostAction::InterpolationBoostSpec) — Optional. Complex specification for custom ranking based on customer
defined attribute value.
Note: The following fields are mutually exclusive:
interpolation_boost_spec
,fixed_boost
. If a field in that set is populated, all other fields in the set will automatically be cleared.