Index
Create update index template
put/es/_index_template/{name}
Path parameters
namestring required
Template
Request body
Example request
{
"template": {
"settings": {
"number_of_shards": 1,
"analysis": {
"filter": "{}",
"char_filter": "{}",
"analyzer": {
"key": {
"filter": [
"filter",
"filter"
],
"char_filter": [
"char_filter",
"char_filter"
],
"lowercase": true,
"pattern": "pattern",
"token_filter": [
"token_filter",
"token_filter"
],
"type": "type",
"stopwords": [
"stopwords",
"stopwords"
],
"tokenizer": "tokenizer"
}
},
"token_filter": "{}",
"tokenizer": "{}"
},
"number_of_replicas": 6
},
"mappings": {
"properties": {
"key": {
"search_analyzer": "search_analyzer",
"analyzer": "analyzer",
"aggregatable": true,
"format": "format",
"index": true,
"highlightable": true,
"sortable": true,
"store": true,
"fields": {
"key": null
},
"time_zone": "time_zone",
"type": "type"
}
}
}
},
"updated_at": "updated_at",
"created_at": "created_at",
"index_patterns": [
"index_patterns",
"index_patterns"
],
"priority": 0
}Response
OK
Example response
{
"template": "template",
"message": "message"
}Changes
Changed in 2 of the 3 revisions of this API.22
- ○
added the new optional request property
////new-optional-request-property
- ○
added the new optional request property
////new-optional-request-property
This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ●
removed the request property
////request-property-removed
- ●
removed the request property
////request-property-removed
This revision also has 5 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●