Description Usage Arguments Examples
Create a core
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
conn |
A solrium connection object, see SolrClient |
name |
(character) The name of the core to be created. Required |
instanceDir |
(character) Path to instance directory |
config |
(character) Path to config file |
schema |
(character) Path to schema file |
dataDir |
(character) Name of the data directory relative to instanceDir. |
configSet |
(character) Name of the configset to use for this core. For more information, see https://lucene.apache.org/solr/guide/6_6/config-sets.html |
collection |
(character) The name of the collection to which this core
belongs. The default is the name of the |
shard |
(character) The shard id this core represents. Normally you want to be auto-assigned a shard id. |
async |
(character) Request ID to track this action which will be processed asynchronously |
raw |
(logical) If |
callopts |
curl options passed on to crul::HttpClient |
... |
You can pass in parameters like |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | ## 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")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.