Index
Create index
post/api/index
Request body
Example request
{
"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
}
}Response
OK
Example response
{
"storage_type": "storage_type",
"index": "index",
"message": "message"
}Changes
Changed in 2 of the 3 revisions of this API.11
- ○
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
This revision also has 5 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●