# NOT RUN {
# start Solr with Schemaless mode via the schemaless eg:
# bin/solr start -e schemaless
# connect
(conn <- SolrClient$new())
## FIXME: not tested yet
# use indexDir parameter
# conn$core_mergeindexes(core="new_core_name",
# indexDir = c("/solr_home/core1/data/index",
# "/solr_home/core2/data/index"))
# use srcCore parameter
# conn$core_mergeindexes(name = "new_core_name", srcCore = c('core1', 'core2'))
# }
Run the code above in your browser using DataLab