collection_deletealias: Delete a collection alias

Description Usage Arguments Examples

View source: R/collection_deletealias.R

Description

Delete a collection alias

Usage

1
collection_deletealias(conn, alias, raw = FALSE, callopts = list())

Arguments

conn

A solrium connection object, see SolrClient

alias

(character) Required. The alias name to be created

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
## Not run: 
(conn <- SolrClient$new())

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

conn$collection_createalias("tstuff", "thingsstuff")
conn$collection_clusterstatus()$cluster$collections$thingsstuff$aliases # new alias
conn$collection_deletealias("tstuff")
conn$collection_clusterstatus()$cluster$collections$thingsstuff$aliases # gone

## End(Not run)

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