Open gothub opened 7 years ago
How useful might it be if we showed the user how to replicate the query MetacatUI performs when searching the catalog?
# Search for titles containing "mysubstring"
query(node, list(q = "title:*mysubstring*+AND+formatType:METADATA+AND+-obsoletedBy:*")
IMO, example queries are great! but what kind of user are you designing for?
This query is designed for the informed user that understands a bit about DataONE conventions such as object versioning. This use case cropped up when @amoeba discovered a user description of using query()
which illustrates that the result can contain obsoleted pids, which may not be apparent to the user, leading them to download outdated content.
We want to keep query()
behaviour as close to raw DataONE API functionality, so I don't think query parameters should be baked into this method.
The package vignettes need an overhaul. Please add to this issue and specific or general updates that are needed for the vignettes.
dataone-overview.Rmd