Index
Set index mappings
put/api/{index}/_mapping
Path parameters
indexstring required
Index
Request body
Example request
{
"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"
}
}
}Response
OK
Example response
{
"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
- ●