R6 class providing access to search operations.
Search results with pagination.
A tibble of all matching concepts.
Search results with facets and metadata.
Autocomplete suggestions.
new()Create a new SearchResource.
SearchResource$new(base_req)base_reqBase httr2 request object.
basic()Basic concept search.
SearchResource$basic(
query,
vocabulary_ids = NULL,
domain_ids = NULL,
concept_class_ids = NULL,
standard_concept = NULL,
include_synonyms = FALSE,
include_invalid = FALSE,
min_score = NULL,
exact_match = FALSE,
page = 1,
page_size = 20,
sort_by = NULL,
sort_order = NULL
)querySearch query string.
vocabulary_idsFilter by vocabulary IDs.
domain_idsFilter by domain IDs.
concept_class_idsFilter by concept class IDs.
standard_conceptFilter by standard concept ("S", "C", or NULL).
include_synonymsSearch in synonyms. Default FALSE.
include_invalidInclude invalid concepts. Default FALSE.
min_scoreMinimum relevance score.
exact_matchRequire exact match. Default FALSE.
pagePage number (1-based). Default 1.
page_sizeResults per page. Default 20.
sort_bySort field.
sort_orderSort order ("asc" or "desc").
basic_all()Fetch all search results with automatic pagination.
SearchResource$basic_all(
query,
vocabulary_ids = NULL,
domain_ids = NULL,
page_size = 100,
max_pages = Inf,
progress = TRUE,
...
)querySearch query string.
vocabulary_idsFilter by vocabulary IDs.
domain_idsFilter by domain IDs.
page_sizeResults per page. Default 100.
max_pagesMaximum pages to fetch. Default Inf.
progressShow progress bar. Default TRUE.
...Additional search parameters.
advanced()Advanced concept search with facets.
SearchResource$advanced(
query,
vocabularies = NULL,
domains = NULL,
concept_classes = NULL,
standard_concepts_only = FALSE,
include_invalid = FALSE,
relationship_filters = NULL,
limit = 20,
offset = 0
)querySearch query string.
vocabulariesFilter by vocabularies.
domainsFilter by domains.
concept_classesFilter by concept classes.
standard_concepts_onlyOnly return standard concepts. Default FALSE.
include_invalidInclude invalid concepts. Default FALSE.
relationship_filtersRelationship-based filters.
limitMaximum results. Default 20.
offsetResult offset. Default 0.
autocomplete()Get autocomplete suggestions.
SearchResource$autocomplete(
query,
vocabulary_ids = NULL,
domains = NULL,
max_suggestions = 10
)queryPartial query string.
vocabulary_idsFilter by vocabulary IDs.
domainsFilter by domains.
max_suggestionsMaximum suggestions. Default 10.
clone()The objects of this class are cloneable with this method.
SearchResource$clone(deep = FALSE)deepWhether to make a deep clone.