Description Usage Arguments Examples
View source: R/collection_createalias.R
Create a new alias pointing to one or more collections. If an alias by the same name already exists, this action will replace the existing alias, effectively acting like an atomic "MOVE" command.
1 2 3 4 5 6 7 | collection_createalias(
conn,
alias,
collections,
raw = FALSE,
callopts = list()
)
|
conn |
A solrium connection object, see SolrClient |
alias |
(character) Required. The alias name to be created |
collections |
(character) Required. A character vector of collections to be aliased |
raw |
(logical) If |
callopts |
curl options passed on to |
1 2 3 4 5 6 7 8 9 10 11 | ## 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
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.