Learn R Programming

elasticsearchr (version 0.3.1)

elastic: elastic_resource class constructor.

Description

Objects of this class contain all of the information required to locate documents in an Elasticsearch cluster.

Usage

elastic(cluster_url, index, doc_type = NULL)

Arguments

cluster_url

URL to the Elastic cluster.

index

The name of an index on the Elasticsearch cluster.

doc_type

[optional] The name of a document type within the index.

Value

An elastic_rescource object.

Examples

Run this code
# NOT RUN {
my_data <- elastic("http://localhost:9200", "iris", "data")
# }

Run the code above in your browser using DataLab