load_es_json: Load a JSON for elastic settings

Description Usage Arguments Value See Also Examples

View source: R/es_settings.R

Description

Creating custom settings, e.g., analyzers and mappings, for elastic is a bit tedious. The body variable in many elastic package functions can be either a nested list or a JSON. Getting the formatting correct using lists has been challenging for all but the simplest scenarios, and we decided to use JSON for storing settings. But that has its own problems, e.g., combining different mappings in a single settings call requires a round-about treatment of the JSON files. This function is the first step to loading settings JSONs, but can't be further wrapped because of the need to combine multiple JSONs for a single settings call.

Usage

1

Arguments

file

Path to the JSON file to be loaded

Value

The contents of file as a list

See Also

make_es_settings

Examples

1
load_es_json("data-raw/recovery_plan_mapping")

jacob-ogre/esadocs documentation built on May 18, 2019, 8 a.m.