es_connect.Rd
Set connection details to Elasticsearch engine
es_connect( host = "127.0.0.1", port = 9200, primary_index = NULL, path = NULL, transport_schema = "http", user = NULL, pwd = NULL, headers = NULL, cainfo = NULL, force = FALSE, errors = "simple", warn = TRUE, ... )
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.
if (FALSE) { con <- es_connect(host = "localhost", port = 9200) }