Class: Google::Cloud::DiscoveryEngine::V1::SearchResponse::SearchResult
- Inherits:
-
Object
- Object
- Google::Cloud::DiscoveryEngine::V1::SearchResponse::SearchResult
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/discoveryengine/v1/search_service.rb
Overview
Represents the search results.
Defined Under Namespace
Classes: ModelScoresEntry, RankSignals
Instance Attribute Summary collapse
-
#chunk ⇒ ::Google::Cloud::DiscoveryEngine::V1::Chunk
The chunk data in the search response if the SearchRequest.ContentSearchSpec.search_result_mode is set to CHUNKS.
-
#document ⇒ ::Google::Cloud::DiscoveryEngine::V1::Document
The document data snippet in the search response.
-
#id ⇒ ::String
Document.id of the searched Document.
-
#model_scores ⇒ ::Google::Protobuf::Map{::String => ::Google::Cloud::DiscoveryEngine::V1::DoubleList}
readonly
Output only.
-
#rank_signals ⇒ ::Google::Cloud::DiscoveryEngine::V1::SearchResponse::SearchResult::RankSignals
A set of ranking signals associated with the result.
Instance Attribute Details
#chunk ⇒ ::Google::Cloud::DiscoveryEngine::V1::Chunk
Returns The chunk data in the search response if the SearchRequest.ContentSearchSpec.search_result_mode is set to CHUNKS.
1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 |
# File 'proto_docs/google/cloud/discoveryengine/v1/search_service.rb', line 1272 class SearchResult include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::DiscoveryEngine::V1::DoubleList] class ModelScoresEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # A set of ranking signals. # @!attribute [rw] keyword_similarity_score # @return [::Float] # Keyword matching adjustment. # @!attribute [rw] relevance_score # @return [::Float] # Semantic relevance adjustment. # @!attribute [rw] semantic_similarity_score # @return [::Float] # Semantic similarity adjustment. # @!attribute [rw] pctr_rank # @return [::Float] # Predicted conversion rate adjustment as a rank. # @!attribute [rw] topicality_rank # @return [::Float] # Topicality adjustment as a rank. # @!attribute [rw] document_age # @return [::Float] # Age of the document in hours. # @!attribute [rw] boosting_factor # @return [::Float] # Combined custom boosts for a doc. # @!attribute [rw] default_rank # @return [::Float] # The default rank of the result. # @!attribute [rw] custom_signals # @return [::Array<::Google::Cloud::DiscoveryEngine::V1::SearchResponse::SearchResult::RankSignals::CustomSignal>] # A list of custom clearbox signals. class RankSignals include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Custom clearbox signal represented by name and value pair. # @!attribute [rw] name # @return [::String] # Name of the signal. # @!attribute [rw] value # @return [::Float] # Float value representing the ranking signal (e.g. 1.25 for BM25). class CustomSignal include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end end |
#document ⇒ ::Google::Cloud::DiscoveryEngine::V1::Document
Returns The document data snippet in the search response. Only fields that are
marked as retrievable are populated.
1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 |
# File 'proto_docs/google/cloud/discoveryengine/v1/search_service.rb', line 1272 class SearchResult include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::DiscoveryEngine::V1::DoubleList] class ModelScoresEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # A set of ranking signals. # @!attribute [rw] keyword_similarity_score # @return [::Float] # Keyword matching adjustment. # @!attribute [rw] relevance_score # @return [::Float] # Semantic relevance adjustment. # @!attribute [rw] semantic_similarity_score # @return [::Float] # Semantic similarity adjustment. # @!attribute [rw] pctr_rank # @return [::Float] # Predicted conversion rate adjustment as a rank. # @!attribute [rw] topicality_rank # @return [::Float] # Topicality adjustment as a rank. # @!attribute [rw] document_age # @return [::Float] # Age of the document in hours. # @!attribute [rw] boosting_factor # @return [::Float] # Combined custom boosts for a doc. # @!attribute [rw] default_rank # @return [::Float] # The default rank of the result. # @!attribute [rw] custom_signals # @return [::Array<::Google::Cloud::DiscoveryEngine::V1::SearchResponse::SearchResult::RankSignals::CustomSignal>] # A list of custom clearbox signals. class RankSignals include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Custom clearbox signal represented by name and value pair. # @!attribute [rw] name # @return [::String] # Name of the signal. # @!attribute [rw] value # @return [::Float] # Float value representing the ranking signal (e.g. 1.25 for BM25). class CustomSignal include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end end |
#id ⇒ ::String
Returns Document.id of the searched Document.
1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 |
# File 'proto_docs/google/cloud/discoveryengine/v1/search_service.rb', line 1272 class SearchResult include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::DiscoveryEngine::V1::DoubleList] class ModelScoresEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # A set of ranking signals. # @!attribute [rw] keyword_similarity_score # @return [::Float] # Keyword matching adjustment. # @!attribute [rw] relevance_score # @return [::Float] # Semantic relevance adjustment. # @!attribute [rw] semantic_similarity_score # @return [::Float] # Semantic similarity adjustment. # @!attribute [rw] pctr_rank # @return [::Float] # Predicted conversion rate adjustment as a rank. # @!attribute [rw] topicality_rank # @return [::Float] # Topicality adjustment as a rank. # @!attribute [rw] document_age # @return [::Float] # Age of the document in hours. # @!attribute [rw] boosting_factor # @return [::Float] # Combined custom boosts for a doc. # @!attribute [rw] default_rank # @return [::Float] # The default rank of the result. # @!attribute [rw] custom_signals # @return [::Array<::Google::Cloud::DiscoveryEngine::V1::SearchResponse::SearchResult::RankSignals::CustomSignal>] # A list of custom clearbox signals. class RankSignals include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Custom clearbox signal represented by name and value pair. # @!attribute [rw] name # @return [::String] # Name of the signal. # @!attribute [rw] value # @return [::Float] # Float value representing the ranking signal (e.g. 1.25 for BM25). class CustomSignal include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end end |
#model_scores ⇒ ::Google::Protobuf::Map{::String => ::Google::Cloud::DiscoveryEngine::V1::DoubleList} (readonly)
Returns Output only. Google provided available scores.
1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 |
# File 'proto_docs/google/cloud/discoveryengine/v1/search_service.rb', line 1272 class SearchResult include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::DiscoveryEngine::V1::DoubleList] class ModelScoresEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # A set of ranking signals. # @!attribute [rw] keyword_similarity_score # @return [::Float] # Keyword matching adjustment. # @!attribute [rw] relevance_score # @return [::Float] # Semantic relevance adjustment. # @!attribute [rw] semantic_similarity_score # @return [::Float] # Semantic similarity adjustment. # @!attribute [rw] pctr_rank # @return [::Float] # Predicted conversion rate adjustment as a rank. # @!attribute [rw] topicality_rank # @return [::Float] # Topicality adjustment as a rank. # @!attribute [rw] document_age # @return [::Float] # Age of the document in hours. # @!attribute [rw] boosting_factor # @return [::Float] # Combined custom boosts for a doc. # @!attribute [rw] default_rank # @return [::Float] # The default rank of the result. # @!attribute [rw] custom_signals # @return [::Array<::Google::Cloud::DiscoveryEngine::V1::SearchResponse::SearchResult::RankSignals::CustomSignal>] # A list of custom clearbox signals. class RankSignals include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Custom clearbox signal represented by name and value pair. # @!attribute [rw] name # @return [::String] # Name of the signal. # @!attribute [rw] value # @return [::Float] # Float value representing the ranking signal (e.g. 1.25 for BM25). class CustomSignal include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end end |
#rank_signals ⇒ ::Google::Cloud::DiscoveryEngine::V1::SearchResponse::SearchResult::RankSignals
Returns A set of ranking signals associated with the result.
1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 |
# File 'proto_docs/google/cloud/discoveryengine/v1/search_service.rb', line 1272 class SearchResult include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::DiscoveryEngine::V1::DoubleList] class ModelScoresEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # A set of ranking signals. # @!attribute [rw] keyword_similarity_score # @return [::Float] # Keyword matching adjustment. # @!attribute [rw] relevance_score # @return [::Float] # Semantic relevance adjustment. # @!attribute [rw] semantic_similarity_score # @return [::Float] # Semantic similarity adjustment. # @!attribute [rw] pctr_rank # @return [::Float] # Predicted conversion rate adjustment as a rank. # @!attribute [rw] topicality_rank # @return [::Float] # Topicality adjustment as a rank. # @!attribute [rw] document_age # @return [::Float] # Age of the document in hours. # @!attribute [rw] boosting_factor # @return [::Float] # Combined custom boosts for a doc. # @!attribute [rw] default_rank # @return [::Float] # The default rank of the result. # @!attribute [rw] custom_signals # @return [::Array<::Google::Cloud::DiscoveryEngine::V1::SearchResponse::SearchResult::RankSignals::CustomSignal>] # A list of custom clearbox signals. class RankSignals include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Custom clearbox signal represented by name and value pair. # @!attribute [rw] name # @return [::String] # Name of the signal. # @!attribute [rw] value # @return [::Float] # Float value representing the ranking signal (e.g. 1.25 for BM25). class CustomSignal include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end end |