View source: R/search_client.R
ScoredResult | R Documentation |
The 'ScoredResult' function constructs a scored result object, typically used in search results to associate an entity ID with a numerical score. This is useful in ranking search results or displaying relevance scores alongside the results.
ScoredResult(entity_id, score)
entity_id |
A string representing the entity ID. This could be a PDB ID or any identifier relevant to the search. |
score |
A numeric value representing the score associated with the entity. The score often indicates the relevance or quality of the match. |
A list representing the scored result, which can be included in the search results or used for further processing.
result <- ScoredResult(entity_id = "1XYZ", score = 95.6)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.