es.reader: Read an ElasticSearch index described in a .es file.

Description Usage Arguments Details Value Examples

View source: R/es.reader.R

Description

This function will load data from an ElasticSearch index based on configuration information found in the specified .es file. The .es file must specify an ElasticSearch sercer to be accessed. A specific query against any index may be executed to generate a data set.

Usage

1
es.reader(data.file, filename, variable.name)

Arguments

data.file

The name of the data file to be read.

filename

The path to the data set to be loaded.

variable.name

The name to be assigned to in the global environment.

Details

Example of the DCF format and settings used in a .es file are shown below:

host: localhost port: 9200 index: sample_index field: text query: this AND that

Value

No value is returned; this function is called for its side effects.

Examples

1
2
3
library('ProjectTemplate')

## Not run: es.reader('example.es', 'data/example.es', 'example')

KentonWhite/esReader documentation built on May 7, 2019, 12:29 p.m.