84 lines
4.4 KiB
Plaintext
84 lines
4.4 KiB
Plaintext
[[reference-field_caps]]
|
||
|
||
////////
|
||
===========================================================================================================================
|
||
|| ||
|
||
|| ||
|
||
|| ||
|
||
|| ██████╗ ███████╗ █████╗ ██████╗ ███╗ ███╗███████╗ ||
|
||
|| ██╔══██╗██╔════╝██╔══██╗██╔══██╗████╗ ████║██╔════╝ ||
|
||
|| ██████╔╝█████╗ ███████║██║ ██║██╔████╔██║█████╗ ||
|
||
|| ██╔══██╗██╔══╝ ██╔══██║██║ ██║██║╚██╔╝██║██╔══╝ ||
|
||
|| ██║ ██║███████╗██║ ██║██████╔╝██║ ╚═╝ ██║███████╗ ||
|
||
|| ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚══════╝ ||
|
||
|| ||
|
||
|| ||
|
||
|| 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.fieldCaps
|
||
|
||
Get the field capabilities. Get information about the capabilities of fields among multiple indices. For data streams, the API returns field capabilities among the stream’s backing indices. It returns runtime fields like any other field. For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the `keyword` family.
|
||
|
||
{ref}/search-field-caps.html[{es} documentation]
|
||
|
||
[discrete]
|
||
==== Function signature
|
||
|
||
[source,ts]
|
||
----
|
||
(FieldCapsRequest, options?): Promise<FieldCapsResponse>
|
||
----
|
||
|
||
[discrete]
|
||
==== FieldCapsRequest
|
||
|
||
[pass]
|
||
++++
|
||
<pre>
|
||
++++
|
||
interface FieldCapsRequest extends <<RequestBase>> {
|
||
index?: <<Indices>>
|
||
allow_no_indices?: boolean
|
||
expand_wildcards?: <<ExpandWildcards>>
|
||
ignore_unavailable?: boolean
|
||
include_unmapped?: boolean
|
||
filters?: string
|
||
types?: string[]
|
||
include_empty_fields?: boolean
|
||
fields?: <<Fields>>
|
||
index_filter?: QueryDslQueryContainer
|
||
runtime_mappings?: MappingRuntimeFields
|
||
}
|
||
|
||
[pass]
|
||
++++
|
||
</pre>
|
||
++++
|
||
[discrete]
|
||
==== FieldCapsResponse
|
||
|
||
[pass]
|
||
++++
|
||
<pre>
|
||
++++
|
||
interface FieldCapsResponse {
|
||
indices: <<Indices>>
|
||
fields: Record<<<Field>>, Record<string, FieldCapsFieldCapability>>
|
||
}
|
||
|
||
[pass]
|
||
++++
|
||
</pre>
|
||
++++
|