Description Usage Arguments Value Examples
View source: R/elasticsearchr_utils.R
Validates healthy Elasticsearch connections by attempting to call the cluster healthcheck endpoint. In doing to, it defends against incorrect URLs to Elasticsearch clusters. Requires that URLs point directly to a master node - i.e. the endpoint that would return the default Elasticsearch message, "You Know, for Search", e.g. 'http://localhost:9200'.
1 |
url |
The URL to validate. |
Boolean
1 2 3 4 5 6 7 8 9 10 | ## Not run:
url <- "http://localhost:9200"
valid_connection(url)
# TRUE
url <- "http://localhost:9201"
valid_connection(url)
# Error: Failed to connect to localhost port 9201: Connection refused
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.