Description Usage Arguments Examples
View source: R/collection_deletereplicaprop.R
Deletes an arbitrary property from a particular replica.
1 2 3 4 5 6 7 8 9 | collection_deletereplicaprop(
conn,
name,
shard,
replica,
property,
raw = FALSE,
callopts = list()
)
|
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 the replica belongs to. |
replica |
(character) Required. The replica, e.g. core_node1. |
property |
(character) Required. The property to delete. Note: this
will have the literal 'property.' prepended to distinguish it from
system-maintained properties. So these two forms are equivalent:
|
raw |
(logical) If |
callopts |
curl options passed on to crul::HttpClient |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | ## Not run:
(conn <- SolrClient$new())
# create collection
if (!conn$collection_exists("deleterep")) {
conn$collection_create(name = "deleterep")
# OR bin/solr create -c deleterep
}
# status
conn$collection_clusterstatus()$cluster$collections$deleterep$shards
# add the value bar to the property foo
conn$collection_addreplicaprop(name = "deleterep", shard = "shard1",
replica = "core_node1", property = "foo", property.value = "bar")
# check status
conn$collection_clusterstatus()$cluster$collections$deleterep$shards
conn$collection_clusterstatus()$cluster$collections$deleterep$shards$shard1$replicas$core_node1
# delete replica property
conn$collection_deletereplicaprop(name = "deleterep", shard = "shard1",
replica = "core_node1", property = "foo")
# check status - foo should be gone
conn$collection_clusterstatus()$cluster$collections$deleterep$shards$shard1$replicas$core_node1
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.