powered by
Setup an Elasticsearch database connection
src_elastic(host = "127.0.0.1", port = 9200, path = NULL, transport_schema = "http", user = NULL, pwd = NULL, force = FALSE, ...)
(character) the base url, defaults to localhost (http://127.0.0.1)
(character) port to connect to, defaults to 9200 (optional)
(character) context path that is appended to the end of the url. Default: NULL, ignored
NULL
(character) http or https. Default: http
(character) User name, if required for the connection. You can specify, but ignored for now.
(character) Password, if required for the connection. You can specify, but ignored for now.
(logical) Force re-load of connection details
Further args passed on to elastic::connect()
elastic::connect()
uses elastic under the hood; uses elastic::connect() for connecting
# NOT RUN { src_elastic() # }
Run the code above in your browser using DataLab