From 117f69d5404426b05fc840c22454950c71b52fcf Mon Sep 17 00:00:00 2001 From: Peter Pisljar Date: Thu, 22 Jul 2021 14:45:43 +0200 Subject: [PATCH] adding es version field support (#104870) --- .../kibana-plugin-plugins-data-public.es_field_types.md | 1 + .../kibana-plugin-plugins-data-server.es_field_types.md | 1 + .../data/common/kbn_field_types/kbn_field_types_factory.ts | 1 + src/plugins/data/common/kbn_field_types/types.ts | 1 + src/plugins/data/public/public.api.md | 4 +++- src/plugins/data/server/server.api.md | 4 +++- 6 files changed, 10 insertions(+), 2 deletions(-) diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.es_field_types.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.es_field_types.md index 30f9189ddb551..61929355decc2 100644 --- a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.es_field_types.md +++ b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.es_field_types.md @@ -50,4 +50,5 @@ export declare enum ES_FIELD_TYPES | TEXT | "text" | | | TOKEN\_COUNT | "token_count" | | | UNSIGNED\_LONG | "unsigned_long" | | +| VERSION | "version" | | diff --git a/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.es_field_types.md b/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.es_field_types.md index 02199fcc24fe2..5061e3e97a346 100644 --- a/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.es_field_types.md +++ b/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.es_field_types.md @@ -50,4 +50,5 @@ export declare enum ES_FIELD_TYPES | TEXT | "text" | | | TOKEN\_COUNT | "token_count" | | | UNSIGNED\_LONG | "unsigned_long" | | +| VERSION | "version" | | diff --git a/src/plugins/data/common/kbn_field_types/kbn_field_types_factory.ts b/src/plugins/data/common/kbn_field_types/kbn_field_types_factory.ts index a48763a5ab788..2ded968c3cdf4 100644 --- a/src/plugins/data/common/kbn_field_types/kbn_field_types_factory.ts +++ b/src/plugins/data/common/kbn_field_types/kbn_field_types_factory.ts @@ -22,6 +22,7 @@ export const createKbnFieldTypes = (): KbnFieldType[] => [ ES_FIELD_TYPES.STRING, ES_FIELD_TYPES.TEXT, ES_FIELD_TYPES.KEYWORD, + ES_FIELD_TYPES.VERSION, ES_FIELD_TYPES._TYPE, ES_FIELD_TYPES._ID, ], diff --git a/src/plugins/data/common/kbn_field_types/types.ts b/src/plugins/data/common/kbn_field_types/types.ts index e6f815e058ce3..c14e7e4b03661 100644 --- a/src/plugins/data/common/kbn_field_types/types.ts +++ b/src/plugins/data/common/kbn_field_types/types.ts @@ -24,6 +24,7 @@ export enum ES_FIELD_TYPES { STRING = 'string', TEXT = 'text', KEYWORD = 'keyword', + VERSION = 'version', BOOLEAN = 'boolean', OBJECT = 'object', diff --git a/src/plugins/data/public/public.api.md b/src/plugins/data/public/public.api.md index 8e35719505f81..5a5872f3c7c20 100644 --- a/src/plugins/data/public/public.api.md +++ b/src/plugins/data/public/public.api.md @@ -785,7 +785,9 @@ export enum ES_FIELD_TYPES { // (undocumented) _TYPE = "_type", // (undocumented) - UNSIGNED_LONG = "unsigned_long" + UNSIGNED_LONG = "unsigned_long", + // (undocumented) + VERSION = "version" } // Warning: (ae-missing-release-tag) "ES_SEARCH_STRATEGY" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) diff --git a/src/plugins/data/server/server.api.md b/src/plugins/data/server/server.api.md index 895c1e3b96ae9..62bb802760d23 100644 --- a/src/plugins/data/server/server.api.md +++ b/src/plugins/data/server/server.api.md @@ -430,7 +430,9 @@ export enum ES_FIELD_TYPES { // (undocumented) _TYPE = "_type", // (undocumented) - UNSIGNED_LONG = "unsigned_long" + UNSIGNED_LONG = "unsigned_long", + // (undocumented) + VERSION = "version" } // Warning: (ae-missing-release-tag) "ES_SEARCH_STRATEGY" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)