Skip to content

Commit cbddb92

Browse files
committed
Test importing from data/public and casting to ES Field Types.
1 parent c7a2a6b commit cbddb92

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/plugins/kibana_utils/public/field_mapping/mapping_setup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import { ES_FIELD_TYPES } from '../../../data/public';
2525
type ShorthandFieldMapObject = FieldMappingSpec | ES_FIELD_TYPES | 'json';
2626

2727
const json: FieldMappingSpec = {
28-
type: ES_FIELD_TYPES.TEXT,
28+
type: 'text' as ES_FIELD_TYPES,
2929
_serialize(v) {
3030
if (v) return JSON.stringify(v);
3131
},

x-pack/legacy/plugins/ml/common/types/fields.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* you may not use this file except in compliance with the Elastic License.
55
*/
66

7-
import { ES_FIELD_TYPES } from '../../../../../../src/plugins/data/common';
7+
import { ES_FIELD_TYPES } from '../../../../../../src/plugins/data/public';
88
import {
99
ML_JOB_AGGREGATION,
1010
KIBANA_AGGREGATION,

0 commit comments

Comments
 (0)