Description Usage Arguments Details Examples
Set connection details to Elasticsearch engine
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
host |
(character) The base host, defaults to |
port |
(character) port to connect to, defaults to |
primary_index |
the name of the primary index to use for querying (will be used as a fallback if index is not explicitly specified in the query) |
path |
(character) context path that is appended to the end of the
url. Default: |
transport_schema |
(character) http or https. Default: |
user |
(character) User name, if required for the connection. You can specify, but ignored for now. |
pwd |
(character) Password, if required for the connection. You can specify, but ignored for now. |
headers |
named list of headers. These headers are used in all requests |
cainfo |
(character) path to a crt bundle, passed to curl option
|
force |
(logical) Force re-load of connection details.
Default: |
errors |
(character) One of simple (Default) or complete. Simple gives http code and error message on an error, while complete gives both http code and error message, and stack trace, if available. |
warn |
(logical) whether to throw warnings from the Elasticsearch
server when provided. Pulls warnings from response headers when given.
default: |
... |
additional curl options to be passed in ALL http requests |
See elastic::connect()
for more details.
1 2 3 4 | ## Not run:
con <- es_connect(host = "localhost", port = 9200)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.