# 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
(conn <- SolrClient$new())
# set a property
conn$config_set("gettingstarted",
set = list(query.filterCache.autowarmCount = 1000))
# unset a property
conn$config_set("gettingstarted", unset = "query.filterCache.size",
verbose = TRUE)
# both set a property and unset a property
conn$config_set("gettingstarted", unset = "enableLazyFieldLoading")
# many properties
conn$config_set("gettingstarted", set = list(
query.filterCache.autowarmCount = 1000,
query.commitWithin.softCommit = 'false'
)
)
# }
Run the code above in your browser using DataLab