# NOT RUN {
# start Solr with Schemaless mode via the schemaless eg:
# bin/solr start -e schemaless
# you can create a new core like: bin/solr create -c corename
# where <corename> is the name for your core - or create as below
# connect
(conn <- SolrClient$new())
# Create a core
path <- "~/solr-8.2.0/server/solr/newcore/conf"
dir.create(path, recursive = TRUE)
files <- list.files("~/solr-8.2.0/server/solr/configsets/sample_techproducts_configs/conf/",
full.names = TRUE)
invisible(file.copy(files, path, recursive = TRUE))
conn$core_create(name = "newcore", instanceDir = "newcore",
configSet = "sample_techproducts_configs")
# }
Run the code above in your browser using DataLab