Search every record type at once (live only: a past release cannot be
searched, so a pinned client gets plasticdb_release_live_only).
Usage
search_hits(q, limit = Inf, client = plasticdb_client())
search_grouped(q, limit = 10, client = plasticdb_client())
search_autocomplete(q, client = plasticdb_client())Arguments
Details
search_hits()returns ranked hits, one row each, withentity_type(protein,microorganism,plastic,paper, ...),route_key(a string: the accession or id to pass to the matching*_get()function; a variant's is its accession, forvariants_get()) andrank. (It is not calledsearch(), which would maskbase::search().)search_grouped()returns the toplimithits (at most 100) for each record type: a list with the overalltotal, agroupstibble (each type's total and the query that lists more) and thehits.search_autocomplete()returns name suggestions, as the site's search box shows them.
Examples
search_hits("cutinase", limit = 5)[, c("entity_type", "route_key", "name")]
# \donttest{
search_grouped("PETase", limit = 1)$groups
# }