d1SolrQuery | R Documentation |
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)
x |
the D1Client (environment) being queried |
solrQuery |
list or character: a fully encoded query string |
the solr response (XML)
D1Client
class description.
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.