Description Usage Arguments Value See Also Examples
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.
1 |
file |
Path to the JSON file to be loaded |
The contents of file
as a list
make_es_settings
1 | load_es_json("data-raw/recovery_plan_mapping")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.