d1SolrQuery: A method to query the DataONE solr endpoint of the...

Description Usage Arguments Value See Also Examples

Description

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.

Usage

1
2
3
4
5
6
7
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

Value

the solr response (XML)

See Also

D1Client class description.

Examples

1
2
3
4
5
6
7
8
9
## 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)

dataone documentation built on July 2, 2018, 1:02 a.m.