Cores/collections management

Scott Chamberlain

2020-04-22

Installation

Stable version from CRAN

install.packages("solrium")

Or the development version from GitHub

remotes::install_github("ropensci/solrium")

Load

library("solrium")

Initialize connection

(conn <- SolrClient$new())
#> <Solr Client>
#>   host: 127.0.0.1
#>   path: 
#>   port: 8983
#>   scheme: http
#>   errors: simple
#>   proxy:

Cores

There are many operations you can do on cores, including:

Create a core

conn$core_create()

Delete a core

conn$core_unload()

Collections

There are many operations you can do on collections, including:

Create a collection

conn$collection_create()

Delete a collection

conn$collection_delete()