Description Usage Arguments Examples
View source: R/collection_createshard.R
Create a shard
1 2 3 4 5 6 7 8 |
conn |
A solrium connection object, see SolrClient |
name |
(character) The name of the core to be created. Required |
shard |
(character) Required. The name of the shard to be created. |
createNodeSet |
(character) Allows defining the nodes to spread the new collection across. If not provided, the CREATE operation will create shard-replica spread across all live Solr nodes. The format is a comma-separated list of node_names, such as localhost:8983_solr, localhost:8984_s olr, localhost:8985_solr. |
raw |
(logical) If |
... |
You can pass in parameters like |
1 2 3 4 5 6 7 | ## Not run:
(conn <- SolrClient$new())
## FIXME - doesn't work right now
# conn$collection_create(name = "trees")
# conn$collection_createshard(name = "trees", shard = "newshard")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.