create_index
Define and configure Elasticsearch index with custom settings and field mappings for efficient data organization and retrieval.
Instructions
Create a new Elasticsearch index with optional settings and mappings
Input Schema
Name | Required | Description | Default |
---|---|---|---|
index | Yes | Name of the new Elasticsearch index to create | |
mappings | No | Optional index mappings defining field types and properties | |
settings | No | Optional index settings like number of shards, replicas, etc. |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"index": {
"description": "Name of the new Elasticsearch index to create",
"minLength": 1,
"type": "string"
},
"mappings": {
"additionalProperties": {},
"description": "Optional index mappings defining field types and properties",
"type": "object"
},
"settings": {
"additionalProperties": {},
"description": "Optional index settings like number of shards, replicas, etc.",
"type": "object"
}
},
"required": [
"index"
],
"type": "object"
}