mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
Support unsigned_long fields (#81115)
* Support unsigned_long fields * Change API docs
This commit is contained in:
parent
702e0c7d73
commit
3a206ab198
7 changed files with 11 additions and 2 deletions
|
@ -43,4 +43,5 @@ export declare enum ES_FIELD_TYPES
|
|||
| STRING | <code>"string"</code> | |
|
||||
| TEXT | <code>"text"</code> | |
|
||||
| TOKEN\_COUNT | <code>"token_count"</code> | |
|
||||
| UNSIGNED\_LONG | <code>"unsigned_long"</code> | |
|
||||
|
||||
|
|
|
@ -43,4 +43,5 @@ export declare enum ES_FIELD_TYPES
|
|||
| STRING | <code>"string"</code> | |
|
||||
| TEXT | <code>"text"</code> | |
|
||||
| TOKEN\_COUNT | <code>"token_count"</code> | |
|
||||
| UNSIGNED\_LONG | <code>"unsigned_long"</code> | |
|
||||
|
||||
|
|
|
@ -66,6 +66,7 @@ describe('utils/kbn_field_types', () => {
|
|||
test('returns the kbnFieldType name that matches the esType', () => {
|
||||
expect(castEsToKbnFieldTypeName(ES_FIELD_TYPES.KEYWORD)).toBe('string');
|
||||
expect(castEsToKbnFieldTypeName(ES_FIELD_TYPES.FLOAT)).toBe('number');
|
||||
expect(castEsToKbnFieldTypeName(ES_FIELD_TYPES.UNSIGNED_LONG)).toBe('number');
|
||||
});
|
||||
|
||||
test('returns unknown for unknown es types', () => {
|
||||
|
|
|
@ -48,6 +48,7 @@ export const createKbnFieldTypes = (): KbnFieldType[] => [
|
|||
ES_FIELD_TYPES.DOUBLE,
|
||||
ES_FIELD_TYPES.INTEGER,
|
||||
ES_FIELD_TYPES.LONG,
|
||||
ES_FIELD_TYPES.UNSIGNED_LONG,
|
||||
ES_FIELD_TYPES.SHORT,
|
||||
ES_FIELD_TYPES.BYTE,
|
||||
ES_FIELD_TYPES.TOKEN_COUNT,
|
||||
|
|
|
@ -52,6 +52,7 @@ export enum ES_FIELD_TYPES {
|
|||
INTEGER = 'integer',
|
||||
LONG = 'long',
|
||||
SHORT = 'short',
|
||||
UNSIGNED_LONG = 'unsigned_long',
|
||||
|
||||
NESTED = 'nested',
|
||||
BYTE = 'byte',
|
||||
|
|
|
@ -514,7 +514,9 @@ export enum ES_FIELD_TYPES {
|
|||
// (undocumented)
|
||||
TOKEN_COUNT = "token_count",
|
||||
// (undocumented)
|
||||
_TYPE = "_type"
|
||||
_TYPE = "_type",
|
||||
// (undocumented)
|
||||
UNSIGNED_LONG = "unsigned_long"
|
||||
}
|
||||
|
||||
// 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)
|
||||
|
|
|
@ -211,7 +211,9 @@ export enum ES_FIELD_TYPES {
|
|||
// (undocumented)
|
||||
TOKEN_COUNT = "token_count",
|
||||
// (undocumented)
|
||||
_TYPE = "_type"
|
||||
_TYPE = "_type",
|
||||
// (undocumented)
|
||||
UNSIGNED_LONG = "unsigned_long"
|
||||
}
|
||||
|
||||
// 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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue