core_reload: Reload a core

Description Usage Arguments Examples

View source: R/core_reload.R

Description

Reload a core

Usage

1
core_reload(conn, name, raw = FALSE, callopts = list())

Arguments

conn

A solrium connection object, see SolrClient

name

(character) The name of the core to be created. Required

raw

(logical) If TRUE, returns raw data

callopts

curl options passed on to crul::HttpClient

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## 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 creaate as below

# connect
(conn <- SolrClient$new())

# Status of particular cores
if (conn$core_exists("gettingstarted")) {
  conn$core_reload("gettingstarted")
  conn$core_status("gettingstarted")
}

## End(Not run)

solrium documentation built on May 19, 2021, 9:06 a.m.