Skip to content

Commit

Permalink
show ignored field
Browse files Browse the repository at this point in the history
  • Loading branch information
flash1293 committed Jun 6, 2024
1 parent 584362e commit c9b0cc0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/kbn-field-utils/src/utils/get_field_icon_type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export function getFieldIconType<T extends FieldBase = DataViewField>(
): string {
const type = getCustomFieldType ? getCustomFieldType(field) : getFieldType<T>(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)) {
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/data/server/ui_settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const OVERRIDES: Record<string, Partial<FieldDescriptor>> = {
_source: { type: '_source' },
_index: { type: 'string' },
_type: { type: 'string' },
_ignored: { type: 'string' },
_id: { type: 'string' },
_score: {
type: 'number',
Expand Down

0 comments on commit c9b0cc0

Please sign in to comment.