Description Usage Arguments See Also Examples
Mappings are the closest concept to traditional database 'schema'. This function allows the creation of Elasticsearch indicies with custom mappings. If left unspecified, Elasticsearch will infer the type of each field based on the first document indexed.
1 | rescource %create% mapping
|
rescource |
An |
mapping |
A JSON object containing the mapping details required for the index. |
https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping.html
1 2 3 4 | ## Not run:
elastic("http://localhost:9200", "iris", "data") %create% mapping_default_simple()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.