Class: Google::Cloud::DiscoveryEngine::V1beta::SearchResponse::SearchResult
- Inherits:
-
Object
- Object
- Google::Cloud::DiscoveryEngine::V1beta::SearchResponse::SearchResult
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/discoveryengine/v1beta/search_service.rb
Overview
Represents the search results.
Defined Under Namespace
Classes: ModelScoresEntry, RankSignals
Instance Attribute Summary collapse
-
#chunk ⇒ ::Google::Cloud::DiscoveryEngine::V1beta::Chunk
The chunk data in the search response if the SearchRequest.ContentSearchSpec.search_result_mode is set to CHUNKS.
-
#document ⇒ ::Google::Cloud::DiscoveryEngine::V1beta::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::V1beta::DoubleList}
Google provided available scores.
-
#rank_signals ⇒ ::Google::Cloud::DiscoveryEngine::V1beta::SearchResponse::SearchResult::RankSignals
A set of ranking signals associated with the result.
Instance Attribute Details
#chunk ⇒ ::Google::Cloud::DiscoveryEngine::V1beta::Chunk
Returns The chunk data in the search response if the SearchRequest.ContentSearchSpec.search_result_mode is set to CHUNKS.
1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 |
# File 'proto_docs/google/cloud/discoveryengine/v1beta/search_service.rb', line 1337 class SearchResult include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::DiscoveryEngine::V1beta::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::V1beta::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::V1beta::Document
Returns The document data snippet in the search response. Only fields that are
marked as retrievable are populated.
1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 |
# File 'proto_docs/google/cloud/discoveryengine/v1beta/search_service.rb', line 1337 class SearchResult include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::DiscoveryEngine::V1beta::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::V1beta::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.
1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 |
# File 'proto_docs/google/cloud/discoveryengine/v1beta/search_service.rb', line 1337 class SearchResult include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::DiscoveryEngine::V1beta::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::V1beta::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::V1beta::DoubleList}
Returns Google provided available scores.
1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 |
# File 'proto_docs/google/cloud/discoveryengine/v1beta/search_service.rb', line 1337 class SearchResult include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::DiscoveryEngine::V1beta::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::V1beta::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::V1beta::SearchResponse::SearchResult::RankSignals
Returns A set of ranking signals associated with the result.
1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 |
# File 'proto_docs/google/cloud/discoveryengine/v1beta/search_service.rb', line 1337 class SearchResult include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::DiscoveryEngine::V1beta::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::V1beta::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 |