collection_delete: Add a collection

Description Usage Arguments Examples

View source: R/collection_delete.R

Description

Add a collection

Usage

1
collection_delete(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 HttpClient

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
(conn <- SolrClient$new())

if (!conn$collection_exists("helloWorld")) {
  conn$collection_create(name = "helloWorld")
}

collection_delete(conn, name = "helloWorld")

## End(Not run)

solrium documentation built on Nov. 17, 2017, 5:56 a.m.