Class: Google::Apis::ContentwarehouseV1::GoogleCloudContentwarehouseV1CustomWeightsMetadata
- Inherits:
-
Object
- Object
- Google::Apis::ContentwarehouseV1::GoogleCloudContentwarehouseV1CustomWeightsMetadata
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/contentwarehouse_v1/classes.rb,
lib/google/apis/contentwarehouse_v1/representations.rb,
lib/google/apis/contentwarehouse_v1/representations.rb
Overview
To support the custom weighting across document schemas.
Instance Attribute Summary collapse
-
#weighted_schema_properties ⇒ Array<Google::Apis::ContentwarehouseV1::GoogleCloudContentwarehouseV1WeightedSchemaProperty>
List of schema and property name.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudContentwarehouseV1CustomWeightsMetadata
constructor
A new instance of GoogleCloudContentwarehouseV1CustomWeightsMetadata.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudContentwarehouseV1CustomWeightsMetadata
Returns a new instance of GoogleCloudContentwarehouseV1CustomWeightsMetadata.
894 895 896 |
# File 'lib/google/apis/contentwarehouse_v1/classes.rb', line 894 def initialize(**args) update!(**args) end |
Instance Attribute Details
#weighted_schema_properties ⇒ Array<Google::Apis::ContentwarehouseV1::GoogleCloudContentwarehouseV1WeightedSchemaProperty>
List of schema and property name. Allows a maximum of 10 schemas to be
specified for relevance boosting.
Corresponds to the JSON property weightedSchemaProperties
892 893 894 |
# File 'lib/google/apis/contentwarehouse_v1/classes.rb', line 892 def weighted_schema_properties @weighted_schema_properties end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
899 900 901 |
# File 'lib/google/apis/contentwarehouse_v1/classes.rb', line 899 def update!(**args) @weighted_schema_properties = args[:weighted_schema_properties] if args.key?(:weighted_schema_properties) end |