Class: Google::Apis::CloudsearchV1::SearchResponse
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::SearchResponse
- 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
The search API response.
Instance Attribute Summary collapse
-
#debug_info ⇒ Google::Apis::CloudsearchV1::ResponseDebugInfo
Debugging information about the response.
-
#error_info ⇒ Google::Apis::CloudsearchV1::ErrorInfo
Error information about the response.
-
#facet_results ⇒ Array<Google::Apis::CloudsearchV1::FacetResult>
Repeated facet results.
-
#has_more_results ⇒ Boolean
(also: #has_more_results?)
Whether there are more search results matching the query.
-
#query_interpretation ⇒ Google::Apis::CloudsearchV1::QueryInterpretation
Query interpretation result for user query.
-
#result_count_estimate ⇒ Fixnum
The estimated result count for this query.
-
#result_count_exact ⇒ Fixnum
The exact result count for this query.
-
#result_counts ⇒ Google::Apis::CloudsearchV1::ResultCounts
Result count information Corresponds to the JSON property
resultCounts
. -
#results ⇒ Array<Google::Apis::CloudsearchV1::SearchResult>
Results from a search query.
-
#spell_results ⇒ Array<Google::Apis::CloudsearchV1::SpellResult>
Suggested spelling for the query.
-
#structured_results ⇒ Array<Google::Apis::CloudsearchV1::StructuredResult>
Structured results for the user query.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SearchResponse
constructor
A new instance of SearchResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SearchResponse
Returns a new instance of SearchResponse.
7162 7163 7164 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7162 def initialize(**args) update!(**args) end |
Instance Attribute Details
#debug_info ⇒ Google::Apis::CloudsearchV1::ResponseDebugInfo
Debugging information about the response.
Corresponds to the JSON property debugInfo
7107 7108 7109 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7107 def debug_info @debug_info end |
#error_info ⇒ Google::Apis::CloudsearchV1::ErrorInfo
Error information about the response.
Corresponds to the JSON property errorInfo
7112 7113 7114 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7112 def error_info @error_info end |
#facet_results ⇒ Array<Google::Apis::CloudsearchV1::FacetResult>
Repeated facet results.
Corresponds to the JSON property facetResults
7117 7118 7119 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7117 def facet_results @facet_results end |
#has_more_results ⇒ Boolean Also known as: has_more_results?
Whether there are more search results matching the query.
Corresponds to the JSON property hasMoreResults
7122 7123 7124 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7122 def has_more_results @has_more_results end |
#query_interpretation ⇒ Google::Apis::CloudsearchV1::QueryInterpretation
Query interpretation result for user query. Empty if query interpretation is
disabled.
Corresponds to the JSON property queryInterpretation
7129 7130 7131 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7129 def query_interpretation @query_interpretation end |
#result_count_estimate ⇒ Fixnum
The estimated result count for this query.
Corresponds to the JSON property resultCountEstimate
7134 7135 7136 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7134 def result_count_estimate @result_count_estimate end |
#result_count_exact ⇒ Fixnum
The exact result count for this query.
Corresponds to the JSON property resultCountExact
7139 7140 7141 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7139 def result_count_exact @result_count_exact end |
#result_counts ⇒ Google::Apis::CloudsearchV1::ResultCounts
Result count information
Corresponds to the JSON property resultCounts
7144 7145 7146 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7144 def result_counts @result_counts end |
#results ⇒ Array<Google::Apis::CloudsearchV1::SearchResult>
Results from a search query.
Corresponds to the JSON property results
7149 7150 7151 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7149 def results @results end |
#spell_results ⇒ Array<Google::Apis::CloudsearchV1::SpellResult>
Suggested spelling for the query.
Corresponds to the JSON property spellResults
7154 7155 7156 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7154 def spell_results @spell_results end |
#structured_results ⇒ Array<Google::Apis::CloudsearchV1::StructuredResult>
Structured results for the user query. These results are not counted against
the page_size.
Corresponds to the JSON property structuredResults
7160 7161 7162 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7160 def structured_results @structured_results end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7167 def update!(**args) @debug_info = args[:debug_info] if args.key?(:debug_info) @error_info = args[:error_info] if args.key?(:error_info) @facet_results = args[:facet_results] if args.key?(:facet_results) @has_more_results = args[:has_more_results] if args.key?(:has_more_results) @query_interpretation = args[:query_interpretation] if args.key?(:query_interpretation) @result_count_estimate = args[:result_count_estimate] if args.key?(:result_count_estimate) @result_count_exact = args[:result_count_exact] if args.key?(:result_count_exact) @result_counts = args[:result_counts] if args.key?(:result_counts) @results = args[:results] if args.key?(:results) @spell_results = args[:spell_results] if args.key?(:spell_results) @structured_results = args[:structured_results] if args.key?(:structured_results) end |