Skip to content

Commit

Permalink
adding es version field support (#104870)
Browse files Browse the repository at this point in the history
  • Loading branch information
ppisljar authored Jul 22, 2021
1 parent 1002125 commit 63ffc9f
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,5 @@ export declare enum ES_FIELD_TYPES
| TEXT | <code>&quot;text&quot;</code> | |
| TOKEN\_COUNT | <code>&quot;token_count&quot;</code> | |
| UNSIGNED\_LONG | <code>&quot;unsigned_long&quot;</code> | |
| VERSION | <code>&quot;version&quot;</code> | |

Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,5 @@ export declare enum ES_FIELD_TYPES
| TEXT | <code>&quot;text&quot;</code> | |
| TOKEN\_COUNT | <code>&quot;token_count&quot;</code> | |
| UNSIGNED\_LONG | <code>&quot;unsigned_long&quot;</code> | |
| VERSION | <code>&quot;version&quot;</code> | |

Original file line number Diff line number Diff line change
Expand Up @@ -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,
],
Expand Down
1 change: 1 addition & 0 deletions src/plugins/data/common/kbn_field_types/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export enum ES_FIELD_TYPES {
STRING = 'string',
TEXT = 'text',
KEYWORD = 'keyword',
VERSION = 'version',

BOOLEAN = 'boolean',
OBJECT = 'object',
Expand Down
4 changes: 3 additions & 1 deletion src/plugins/data/public/public.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 3 additions & 1 deletion src/plugins/data/server/server.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 63ffc9f

Please sign in to comment.