View source: R/search_client.R
RequestOptions | R Documentation |
The 'RequestOptions' function sets various options for search requests to the RCSB PDB, such as pagination and sorting preferences. These options help control the volume of search results returned and the order in which they are presented.
RequestOptions(
result_start_index = NULL,
num_results = NULL,
sort_by = "score",
desc = TRUE
)
result_start_index |
An integer specifying the starting index for result pagination. If 'NULL', pagination is not applied. |
num_results |
An integer specifying the number of results to return. If 'NULL', the default number of results is returned. |
sort_by |
A string indicating the attribute to sort the results by. The default value is 'score', which ranks results based on relevance. |
desc |
A boolean indicating whether the sorting should be in descending order. Default is 'TRUE'. |
A list of request options that can be included in a search query to control the results.
options <- RequestOptions(result_start_index = 0, num_results = 100, sort_by = "score", desc = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.