Class: Google::Apis::CloudsearchV1::SourceScoringConfig

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/cloudsearch_v1/classes.rb,
generated/google/apis/cloudsearch_v1/representations.rb,
generated/google/apis/cloudsearch_v1/representations.rb

Overview

Set the scoring configuration. This allows modifying the ranking of results for a source.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SourceScoringConfig

Returns a new instance of SourceScoringConfig.



4492
4493
4494
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 4492

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#source_importanceString

Importance of the source. Corresponds to the JSON property sourceImportance

Returns:

  • (String)


4490
4491
4492
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 4490

def source_importance
  @source_importance
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4497
4498
4499
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 4497

def update!(**args)
  @source_importance = args[:source_importance] if args.key?(:source_importance)
end