71 lines
4.2 KiB
Plaintext
71 lines
4.2 KiB
Plaintext
[[reference-indices-create]]
|
|
|
|
////////
|
|
===========================================================================================================================
|
|
|| ||
|
|
|| ||
|
|
|| ||
|
|
|| ██████╗ ███████╗ █████╗ ██████╗ ███╗ ███╗███████╗ ||
|
|
|| ██╔══██╗██╔════╝██╔══██╗██╔══██╗████╗ ████║██╔════╝ ||
|
|
|| ██████╔╝█████╗ ███████║██║ ██║██╔████╔██║█████╗ ||
|
|
|| ██╔══██╗██╔══╝ ██╔══██║██║ ██║██║╚██╔╝██║██╔══╝ ||
|
|
|| ██║ ██║███████╗██║ ██║██████╔╝██║ ╚═╝ ██║███████╗ ||
|
|
|| ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚══════╝ ||
|
|
|| ||
|
|
|| ||
|
|
|| This file is autogenerated, DO NOT send pull requests that changes this file directly. ||
|
|
|| You should update the script that does the generation, which can be found in: ||
|
|
|| https://github.com/elastic/elastic-client-generator-js ||
|
|
|| ||
|
|
|| You can run the script with the following command: ||
|
|
|| npm run elasticsearch -- --version <version> ||
|
|
|| ||
|
|
|| ||
|
|
|| ||
|
|
===========================================================================================================================
|
|
////////
|
|
|
|
[discrete]
|
|
=== client.indices.create
|
|
|
|
Create an index. Creates a new index.
|
|
|
|
{ref}/indices-create-index.html[{es} documentation]
|
|
|
|
[discrete]
|
|
==== Function signature
|
|
|
|
[source,ts]
|
|
----
|
|
(IndicesCreateRequest, options?): Promise<IndicesCreateResponse>
|
|
----
|
|
|
|
[discrete]
|
|
===== `IndicesCreateRequest`
|
|
|
|
[source,ts]
|
|
----
|
|
interface IndicesCreateRequest extends <<shared-type-request-base, RequestBase>> {
|
|
index: <<shared-type-index-name, IndexName>>
|
|
master_timeout?: <<shared-type-duration, Duration>>
|
|
timeout?: <<shared-type-duration, Duration>>
|
|
wait_for_active_shards?: <<shared-type-wait-for-active-shards, WaitForActiveShards>>
|
|
aliases?: Record<<<shared-type-name, Name>>, IndicesAlias>
|
|
mappings?: MappingTypeMapping
|
|
settings?: IndicesIndexSettings
|
|
}
|
|
----
|
|
|
|
[discrete]
|
|
===== `IndicesCreateResponse`
|
|
|
|
[source,ts]
|
|
----
|
|
interface IndicesCreateResponse {
|
|
index: <<shared-type-index-name, IndexName>>
|
|
shards_acknowledged: boolean
|
|
acknowledged: boolean
|
|
}
|
|
----
|
|
|