Description Usage Arguments Examples
View source: R/collection_removerole.R
Remove an assigned role. This API is used to undo the roles
assigned using collection_addrole
1 | collection_removerole(conn, role = "overseer", node, raw = FALSE, ...)
|
conn |
A solrium connection object, see SolrClient |
role |
(character) Required. The name of the role. The only supported role as of now is overseer (set as default). |
node |
(character) Required. The name of the node. |
raw |
(logical) If |
... |
You can pass in parameters like |
1 2 3 4 5 6 7 8 9 | ## Not run:
(conn <- SolrClient$new())
# get list of nodes
nodes <- conn$collection_clusterstatus()$cluster$live_nodes
conn$collection_addrole(node = nodes[1])
conn$collection_removerole(node = nodes[1])
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.