## Not run:
# url <- 'http://api.plos.org/search'
#
# solr_mlt(q='*:*', mlt.count=2, mlt.fl='abstract', fl='score', base=url,
# fq="doc_type:full")
# solr_mlt(q='*:*', rows=2, mlt.fl='title', mlt.mindf=1, mlt.mintf=1, fl='alm_twitterCount',
# base=url)
# solr_mlt(q='title:"ecology" AND body:"cell"', mlt.fl='title', mlt.mindf=1, mlt.mintf=1,
# fl='counter_total_all', rows=5, base=url)
# solr_mlt(q='ecology', mlt.fl='abstract', fl='title', rows=5, base=url)
# solr_mlt(q='ecology', mlt.fl='abstract', fl=c('score','eissn'), rows=5, base=url)
# solr_mlt(q='ecology', mlt.fl='abstract', fl=c('score','eissn'), rows=5, base=url)
#
# # get raw data, and parse later if needed
# out=solr_mlt(q='ecology', mlt.fl='abstract', fl='title', rows=2, base=url,
# raw=TRUE)
# library(rjson)
# fromJSON(out)
# solr_parse(out, "df")
# ## End(Not run)
Run the code above in your browser using DataLab