Class: Google::Apis::CloudsearchV1::ObjectOptions
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::ObjectOptions
- Defined in:
- generated/google/apis/cloudsearch_v1/classes.rb,
generated/google/apis/cloudsearch_v1/representations.rb,
generated/google/apis/cloudsearch_v1/representations.rb
Overview
The options for an object.
Instance Attribute Summary collapse
-
#display_options ⇒ Google::Apis::CloudsearchV1::ObjectDisplayOptions
The display options for an object.
-
#freshness_options ⇒ Google::Apis::CloudsearchV1::FreshnessOptions
Indicates which freshness property to use when adjusting search ranking for an item.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ObjectOptions
constructor
A new instance of ObjectOptions.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ ObjectOptions
Returns a new instance of ObjectOptions.
2587 2588 2589 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2587 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_options ⇒ Google::Apis::CloudsearchV1::ObjectDisplayOptions
The display options for an object.
Corresponds to the JSON property displayOptions
2574 2575 2576 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2574 def @display_options end |
#freshness_options ⇒ Google::Apis::CloudsearchV1::FreshnessOptions
Indicates which freshness property to use when adjusting search ranking for
an item. Fresher, more recent dates indicate higher quality. Use the
freshness option property that best works with your data. For fileshare
documents, last modified time is most relevant. For calendar event data,
the time when the event occurs is a more relevant freshness indicator. In
this way, calendar events that occur closer to the time of the search query
are considered higher quality and ranked accordingly.
Corresponds to the JSON property freshnessOptions
2585 2586 2587 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2585 def @freshness_options end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2592 2593 2594 2595 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2592 def update!(**args) @display_options = args[:display_options] if args.key?(:display_options) @freshness_options = args[:freshness_options] if args.key?(:freshness_options) end |