class Google::Apis::CloudsearchV1::SearchResult

Results containing indexed information for a document.

Attributes

clustered_results[RW]

If source is clustered, provide list of clustered results. There will only be one level of clustered results. If current source is not enabled for clustering, this field will be empty. Corresponds to the JSON property `clusteredResults` @return [Array<Google::Apis::CloudsearchV1::SearchResult>]

debug_info[RW]

Debugging information about the result. Corresponds to the JSON property `debugInfo` @return [Google::Apis::CloudsearchV1::ResultDebugInfo]

metadata[RW]

Metadata of a matched search result. Corresponds to the JSON property `metadata` @return [Google::Apis::CloudsearchV1::Metadata]

snippet[RW]

Snippet of the search result, which summarizes the content of the resulting page. Corresponds to the JSON property `snippet` @return [Google::Apis::CloudsearchV1::Snippet]

title[RW]

Title of the search result. Corresponds to the JSON property `title` @return [String]

url[RW]

The URL of the search result. The URL contains a Google redirect to the actual item. This URL is signed and shouldn't be changed. Corresponds to the JSON property `url` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/cloudsearch_v1/classes.rb, line 4358
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/cloudsearch_v1/classes.rb, line 4363
def update!(**args)
  @clustered_results = args[:clustered_results] if args.key?(:clustered_results)
  @debug_info = args[:debug_info] if args.key?(:debug_info)
  @metadata = args[:metadata] if args.key?(:metadata)
  @snippet = args[:snippet] if args.key?(:snippet)
  @title = args[:title] if args.key?(:title)
  @url = args[:url] if args.key?(:url)
end