Test run of new docs
This commit is contained in:
69
docs/reference-create.asciidoc
Normal file
69
docs/reference-create.asciidoc
Normal file
@ -0,0 +1,69 @@
|
||||
[[reference-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.create
|
||||
|
||||
Index a document. Adds a JSON document to the specified data stream or index and makes it searchable. If the target is an index and the document already exists, the request updates the document and increments its version.
|
||||
|
||||
{ref}/docs-index_.html[{es} documentation]
|
||||
|
||||
[discrete]
|
||||
==== Function signature
|
||||
|
||||
[source,ts]
|
||||
----
|
||||
(CreateRequest, options?): Promise<CreateResponse>
|
||||
----
|
||||
|
||||
[discrete]
|
||||
===== `CreateRequest`
|
||||
|
||||
[source,ts]
|
||||
----
|
||||
interface CreateRequest<TDocument = unknown> extends <<shared-type-request-base, RequestBase>> {
|
||||
id: <<shared-type-id, Id>>
|
||||
index: <<shared-type-index-name, IndexName>>
|
||||
pipeline?: string
|
||||
refresh?: <<shared-type-refresh, Refresh>>
|
||||
routing?: <<shared-type-routing, Routing>>
|
||||
timeout?: <<shared-type-duration, Duration>>
|
||||
version?: <<shared-type-version-number, VersionNumber>>
|
||||
version_type?: <<shared-type-version-type, VersionType>>
|
||||
wait_for_active_shards?: <<shared-type-wait-for-active-shards, WaitForActiveShards>>
|
||||
document?: TDocument
|
||||
}
|
||||
----
|
||||
|
||||
[discrete]
|
||||
===== `CreateResponse`
|
||||
|
||||
[source,ts]
|
||||
----
|
||||
type CreateResponse = <<shared-type-write-response-base, WriteResponseBase>>
|
||||
----
|
||||
|
||||
Reference in New Issue
Block a user