collection_clusterprop: Add, edit, delete a cluster-wide property

Description Usage Arguments Examples

Description

Important: whether add, edit, or delete is used is determined by the value passed to the val parameter. If the property name is new, it will be added. If the property name exists, and the value is different, it will be edited. If the property name exists, and the value is NULL or empty the property is deleted (unset).

Usage

1
collection_clusterprop(name, val, raw = FALSE, callopts = list())

Arguments

name

(character) Required. The name of the property. The two supported properties names are urlScheme and autoAddReplicas. Other names are rejected with an error

val

(character) Required. The value of the property. If the value is empty or null, the property is unset.

raw

(logical) If TRUE, returns raw data

callopts

curl options passed on to GET

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
solr_connect()

# add the value https to the property urlScheme
collection_clusterprop(name = "urlScheme", val = "https")

# status again
collection_clusterstatus()$cluster$properties

# delete the property urlScheme by setting val to NULL or a 0 length string
collection_clusterprop(name = "urlScheme", val = "")

## End(Not run)


Search within the solrium package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.