elastic: elastic_resource class constructor.

Description Usage Arguments Value Examples

View source: R/api.R

Description

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

Usage

1
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

1
2
3
4
## Not run: 
my_data <- elastic("http://localhost:9200", "iris", "data")

## End(Not run)

elasticsearchr documentation built on July 31, 2019, 1:05 a.m.