Description Usage Arguments Details Value Examples
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.
1 | es.reader(data.file, filename, variable.name)
|
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. |
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
No value is returned; this function is called for its side effects.
1 2 3 | library('ProjectTemplate')
## Not run: es.reader('example.es', 'data/example.es', 'example')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.