d1_search: d1_search

Description Usage Arguments Details Examples

Description

Search the dataone repository by fields

Usage

1
2
3
4
d1_search(query, search_field, filter = NULL,
  return_fields = c("identifier"), fuzzy = TRUE, rows = 100,
  format = c("xml", "json", "csv"), node = "https://cn.dataone.org/cn/v1",
  engine = "solr")

Arguments

query

the search query (character string)

search_field

named string providing optional filters for the search, e.g. c(author = "Wolkovich", identifier = "doi"),

filter

filters to apply (depends on engine, e.g. solr filters)

return_fields

fields that should be returned by the search, see details.

fuzzy

logical indicating whether fuzzy or only exact matches should be returned.

rows

maximum number of search results

format

perferred fromat for search results

node

which dataone node to search, defaults to master node.

engine

search engine to use for queries, defaults to solr

Details

The current possible query terms for both search and return fields are given here: https://mule1.dataone.org/ArchitectureDocs-current/design/SearchMetadata.html#attribute-descriptions-and-notes

Examples

1
2
3
4
## Not run: 
 d1_search("Wolkovich", "author")

## End(Not run)

cboettig/dataone-lite documentation built on May 13, 2019, 2:06 p.m.