Skip to content

Commit

Permalink
[7.x] Reduce SavedObjects mappings for Application Usage (#70475) (#7…
Browse files Browse the repository at this point in the history
  • Loading branch information
afharo authored Jul 2, 2020
1 parent 2978536 commit 50f5087
Showing 1 changed file with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,12 @@ export function registerMappings(registerType: SavedObjectsServiceSetup['registe
hidden: false,
namespaceType: 'agnostic',
mappings: {
dynamic: false,
properties: {
appId: { type: 'keyword' },
numberOfClicks: { type: 'long' },
minutesOnScreen: { type: 'float' },
// Disabled the mapping of these fields since they are not searched and we need to reduce the amount of indexed fields (#43673)
// appId: { type: 'keyword' },
// numberOfClicks: { type: 'long' },
// minutesOnScreen: { type: 'float' },
},
},
});
Expand All @@ -48,11 +50,13 @@ export function registerMappings(registerType: SavedObjectsServiceSetup['registe
hidden: false,
namespaceType: 'agnostic',
mappings: {
dynamic: false,
properties: {
timestamp: { type: 'date' },
appId: { type: 'keyword' },
numberOfClicks: { type: 'long' },
minutesOnScreen: { type: 'float' },
// Disabled the mapping of these fields since they are not searched and we need to reduce the amount of indexed fields (#43673)
// appId: { type: 'keyword' },
// numberOfClicks: { type: 'long' },
// minutesOnScreen: { type: 'float' },
},
},
});
Expand Down

0 comments on commit 50f5087

Please sign in to comment.