R/core_status.R

Defines functions core_status

Documented in core_status

#' Get core status
#'
#' @export
#'
#' @inheritParams core_create
#' @param indexInfo (logical)
#' @examples \dontrun{
#' # start Solr with Schemaless mode via the schemaless eg:
#' #   bin/solr start -e schemaless
#' # 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())
#'
#' # Status of all cores
#' conn$core_status()
#'
#' # Status of particular cores
#' conn$core_status("gettingstarted")
#'
#' # Get index info or not
#' ## Default: TRUE
#' conn$core_status("gettingstarted", indexInfo = TRUE)
#' conn$core_status("gettingstarted", indexInfo = FALSE)
#' }
core_status <- function(conn, name = NULL, indexInfo = TRUE, raw = FALSE,
                        callopts=list()) {
  conn$core_status(name, indexInfo, raw, callopts)
}

Try the solrium package in your browser

Any scripts or data that you put into this service are public.

solrium documentation built on May 19, 2021, 9:06 a.m.