Class: Google::Apis::CloudsearchV1::HashtagData
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::HashtagData
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb
Overview
Hashtag metadata, for HASHTAG segments. For a hashtag, the "text" field should contain the display text, and the search_text field should represent the topic being referenced, without the hash symbol; for example, we might have: text = "
Google" hashtag_data.search_text = "Google" Another example: text = "#pikachu"
hashtag_data.search_text = "Pokemon" Both strings should be considered part of the searchable text. In go/sbe, both are indexed and searchable.
Instance Attribute Summary collapse
-
#search_text ⇒ String
Corresponds to the JSON property
searchText
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ HashtagData
constructor
A new instance of HashtagData.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ HashtagData
Returns a new instance of HashtagData.
10963 10964 10965 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10963 def initialize(**args) update!(**args) end |
Instance Attribute Details
#search_text ⇒ String
Corresponds to the JSON property searchText
10961 10962 10963 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10961 def search_text @search_text end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10968 10969 10970 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10968 def update!(**args) @search_text = args[:search_text] if args.key?(:search_text) end |