powered by
Objects of this class contain all of the information required to locate documents in an Elasticsearch cluster.
elastic(cluster_url, index, doc_type = NULL)
URL to the Elastic cluster.
The name of an index on the Elasticsearch cluster.
[optional] The name of a document type within the index.
An elastic_rescource object.
elastic_rescource
# NOT RUN { my_data <- elastic("http://localhost:9200", "iris", "data") # }
Run the code above in your browser using DataLab