Class: Google::Apis::CloudsearchV1::HashtagData

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ HashtagData

Returns a new instance of HashtagData.



11040
11041
11042
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11040

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

Instance Attribute Details

#search_textString

Corresponds to the JSON property searchText

Returns:

  • (String)


11038
11039
11040
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11038

def search_text
  @search_text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11045
11046
11047
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11045

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