# NOT RUN {
# Get a list of names and Orcid IDs matching a name query
orcid(query="carl+boettiger")
orcid(query="given-names:carl AND family-name:boettiger")
# by email
orcid(query="email:cboettig@berkeley.edu")
# You can string together many search terms
orcid(query="johnson cardiology houston")
# peer review group id
orcid("peer-review-group-id:1996-3068")
# And use boolean operators
orcid("johnson AND(caltech OR 'California Institute of Technology')")
# And you can use start and rows arguments to do pagination
orcid("johnson cardiology houston", start = 2, rows = 3)
# Use search terms, here family name
orcid("family-name:Sanchez", start = 4, rows = 6)
# Use search terms, here...
orcid(query="Raymond", start=0, rows=10, defType="edismax")
# Search using keywords
orcid(query="keyword:ecology")
# Search by DOI
orcid(query="10.1087/20120404")
# Note the difference between the first wrt the second and third
## See also orcid_doi() function for searching by DOIs
orcid("10.1087/20120404")
orcid('"10.1087/20120404"')
## doi
orcid('digital-object-ids:"10.1087/20120404"')
## doi prefix
orcid('digital-object-ids:"10.1087/*"')
# search by work titles
orcid('work-titles:Modern developments in holography and its materials')
orcid('pmc:PMC3901677')
## Using more complicated SOLR queries
# Use the qf parameter to "boost" query fields so they are ranked higher
# See how it is different than the second query without using "qf"
orcid(defType = "edismax", query = "Raymond",
qf = "given-names^1.0 family-name^2.0", start = 0, rows = 10)
orcid(query = "Raymond", start = 0, rows = 10)
# Use other SOLR parameters as well, here mm. Using the "mm" param, 1 and
# 2 word queries require that all of the optional clauses match, but for
# queries with three or more clauses one missing clause is allowed...
# See for more: http://bit.ly/1uyMLDQ
orcid(defType = "edismax",
query="keyword:ecology OR evolution OR conservation",
mm = 2, rows = 20)
# }
Run the code above in your browser using DataLab