View source: R/collection_exists.R
collection_exists | R Documentation |
Check if a collection exists
collection_exists(conn, name, ...)
conn |
A solrium connection object, see SolrClient |
name |
(character) The name of the core. If not given, all cores. |
... |
curl options passed on to crul::HttpClient |
Simply calls collection_list()
internally
A single boolean, TRUE
or FALSE
## 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 (conn <- SolrClient$new()) # exists conn$collection_exists("gettingstarted") # doesn't exist conn$collection_exists("hhhhhh") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.