# elasticsearchSchemaManagement.createDataStore

## Description
Create Elasticsearch Index with given schema, default ingestion pipeline and data retention setting
Creates a new Elasticsearch index with the provided schema mapping, default ingestion pipeline and data retention setting.
This operation allows setting an optional default ingestion pipeline and optional retention period for automatic data expiration.

- defaultPipeline: Specifies the pipeline through which the documents will go through for modification or validation purpose before getting indexed. Defaults to null if not provided.

- ttlHours: Specifies the data retention duration in hours. Defaults to 720 hours (30 days) if not provided.
Set to -1 to disable data expiration, allowing data to persist indefinitely.

- ttlField: The schema field path used to track document expiration for data retension. This field path is required if
ttlHours is not -1 and must exist in the schema.

NOTE: ttlField mapping type should be 'date' or 'long'.
If ttlField is of type 'long', it is assumed to be storing epoch milliseconds.

**Using Verbose Mode:**

To use verbose mode when retrieving the schema later with `verbose=true`, you can include a `_meta` field
in your schema. This field contains descriptions for each field and follows the structure of `properties`.
The `_meta` field allows you to add human-readable descriptions to both top-level and nested fields in your schema.

## When to use
<!-- Describe user intent that should trigger this tool -->

## What this returns
<!-- Describe the shape / purpose of the response -->

## Notes
<!-- Constraints, ordering, related tools, etc. -->
