From fbd11766fb84f0b8a3cbfe1a7119243c8257350f Mon Sep 17 00:00:00 2001 From: Matt Kime Date: Tue, 11 Aug 2020 21:25:23 -0500 Subject: [PATCH 1/2] reduce number of indexed fields in index pattern saved object --- src/plugins/data/server/saved_objects/index_patterns.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/plugins/data/server/saved_objects/index_patterns.ts b/src/plugins/data/server/saved_objects/index_patterns.ts index 44d2813f6e3e8..32c0324721db7 100644 --- a/src/plugins/data/server/saved_objects/index_patterns.ts +++ b/src/plugins/data/server/saved_objects/index_patterns.ts @@ -42,16 +42,9 @@ export const indexPatternSavedObjectType: SavedObjectsType = { }, }, mappings: { + dynamic: false, properties: { - fieldFormatMap: { type: 'text' }, - fields: { type: 'text' }, - intervalName: { type: 'keyword' }, - notExpandable: { type: 'boolean' }, - sourceFilters: { type: 'text' }, - timeFieldName: { type: 'keyword' }, title: { type: 'text' }, - type: { type: 'keyword' }, - typeMeta: { type: 'keyword' }, }, }, migrations: indexPatternSavedObjectTypeMigrations as any, From 49d52b1f1f7f1dc50a01306d22e96ae0417abb70 Mon Sep 17 00:00:00 2001 From: Matthew Kime Date: Tue, 11 Aug 2020 21:28:49 -0500 Subject: [PATCH 2/2] Update index_patterns.ts --- src/plugins/data/server/saved_objects/index_patterns.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/data/server/saved_objects/index_patterns.ts b/src/plugins/data/server/saved_objects/index_patterns.ts index 32c0324721db7..6aabcdf7c1c01 100644 --- a/src/plugins/data/server/saved_objects/index_patterns.ts +++ b/src/plugins/data/server/saved_objects/index_patterns.ts @@ -45,6 +45,7 @@ export const indexPatternSavedObjectType: SavedObjectsType = { dynamic: false, properties: { title: { type: 'text' }, + type: { type: 'keyword' }, }, }, migrations: indexPatternSavedObjectTypeMigrations as any,