Skip to content

Commit

Permalink
Test importing from data/public and casting to ES Field Types.
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeelmers committed Nov 14, 2019
1 parent c7a2a6b commit cbddb92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { ES_FIELD_TYPES } from '../../../data/public';
type ShorthandFieldMapObject = FieldMappingSpec | ES_FIELD_TYPES | 'json';

const json: FieldMappingSpec = {
type: ES_FIELD_TYPES.TEXT,
type: 'text' as ES_FIELD_TYPES,
_serialize(v) {
if (v) return JSON.stringify(v);
},
Expand Down
2 changes: 1 addition & 1 deletion x-pack/legacy/plugins/ml/common/types/fields.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/

import { ES_FIELD_TYPES } from '../../../../../../src/plugins/data/common';
import { ES_FIELD_TYPES } from '../../../../../../src/plugins/data/public';
import {
ML_JOB_AGGREGATION,
KIBANA_AGGREGATION,
Expand Down

0 comments on commit cbddb92

Please sign in to comment.