Get Solr configuration details

Description

Get Solr configuration details

Usage

1
config_get(name, what = NULL, wt = "json", raw = FALSE, ...)

Arguments

name

(character) The name of the core. If not given, all cores.

what

(character) What you want to look at. One of solrconfig or schema. Default: solrconfig

wt

(character) One of json (default) or xml. Data type returned. If json, uses fromJSON to parse. If xml, uses read_xml to parse.

raw

(logical) If TRUE, returns raw data in format specified by wt

...

curl options passed on to GET

Details

Note that if raw=TRUE, what is ignored. That is, you get all the data when raw=TRUE.

Value

A list, xml_document, or character

Examples

 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
29
30
31
32
## Not run: 
# start Solr with Cloud mode via the schemaless eg: bin/solr -e cloud
# you can create a new core like: bin/solr create -c corename
# where <corename> is the name for your core - or creaate as below

# connect
solr_connect()

# all config settings
config_get("gettingstarted")

# just znodeVersion
config_get("gettingstarted", "znodeVersion")

# just znodeVersion
config_get("gettingstarted", "luceneMatchVersion")

# just updateHandler
config_get("gettingstarted", "updateHandler")

# just updateHandler
config_get("gettingstarted", "requestHandler")

## Get XML
config_get("gettingstarted", wt = "xml")
config_get("gettingstarted", "updateHandler", wt = "xml")
config_get("gettingstarted", "requestHandler", wt = "xml")

## Raw data - what param ignored when raw=TRUE
config_get("gettingstarted", raw = TRUE)

## End(Not run)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.