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.



10488
10489
10490
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10488

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

Instance Attribute Details

#search_textString

Corresponds to the JSON property searchText

Returns:

  • (String)


10486
10487
10488
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10486

def search_text
  @search_text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10493
10494
10495
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10493

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