diff --git a/packages/kbn-field-utils/src/utils/get_field_icon_type.ts b/packages/kbn-field-utils/src/utils/get_field_icon_type.ts index bb3bdeca2315c..e41f2e30a1ab4 100644 --- a/packages/kbn-field-utils/src/utils/get_field_icon_type.ts +++ b/packages/kbn-field-utils/src/utils/get_field_icon_type.ts @@ -23,7 +23,7 @@ export function getFieldIconType( ): string { const type = getCustomFieldType ? getCustomFieldType(field) : getFieldType(field); const esType = field.esTypes?.[0] || null; - if (esType && ['_id', '_index'].includes(esType) && type === 'string') { + if (esType && ['_id', '_index', '_ignored'].includes(esType) && type === 'string') { return 'keyword'; } if (type === 'unknown' && esType && isKnownFieldType(esType)) { diff --git a/src/plugins/data/server/ui_settings.ts b/src/plugins/data/server/ui_settings.ts index 7c314d66c1901..1b264cc44fdd0 100644 --- a/src/plugins/data/server/ui_settings.ts +++ b/src/plugins/data/server/ui_settings.ts @@ -40,7 +40,7 @@ export function getUiSettings( name: i18n.translate('data.advancedSettings.metaFieldsTitle', { defaultMessage: 'Meta fields', }), - value: ['_source', '_id', '_index', '_score'], + value: ['_source', '_id', '_index', '_score', '_ignored'], description: i18n.translate('data.advancedSettings.metaFieldsText', { defaultMessage: 'Fields that exist outside of _source to merge into our document when displaying it', diff --git a/src/plugins/data_views/server/fetcher/lib/field_capabilities/overrides.ts b/src/plugins/data_views/server/fetcher/lib/field_capabilities/overrides.ts index fa9c03a67ccde..87afa69a99e55 100644 --- a/src/plugins/data_views/server/fetcher/lib/field_capabilities/overrides.ts +++ b/src/plugins/data_views/server/fetcher/lib/field_capabilities/overrides.ts @@ -13,6 +13,7 @@ const OVERRIDES: Record> = { _source: { type: '_source' }, _index: { type: 'string' }, _type: { type: 'string' }, + _ignored: { type: 'string' }, _id: { type: 'string' }, _score: { type: 'number',