A method to query the DataONE solr endpoint of the Coordinating Node.
A method to query the DataONE solr endpoint of the Coordinating Node.
It expects any lucene reserved characters to already be escaped with backslash. If solrQuery is a list, it is expected to have field names as attributes and search values as the values in the list.
d1SolrQuery(x, solrQuery)## S4 method for signature 'D1Client,list'd1SolrQuery(x, solrQuery)## S4 method for signature 'D1Client,character'd1SolrQuery(x, solrQuery)
Arguments
x: the D1Client (environment) being queried
solrQuery: list or character: a fully encoded query string
Returns
the solr response (XML)
Examples
## Not run:library(dataone)d1c <- D1Client("PROD","urn:node:KNB")queryParams <- list(q="id:doi*", rows="5", fq="(abstract:chlorophyll AND dateUploaded:[2000-01-01T00:00:00Z TO NOW])", fl="title,id,abstract,size,dateUploaded,attributeName")result <- d1SolrQuery(d1c, queryParams)## End(Not run)