Files
elasticsearch-js/docs/reference-field_caps.asciidoc
2024-12-05 14:46:51 -06:00

84 lines
4.4 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[[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 streams 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>
++++