Skip to content

Commit

Permalink
Exclude assets from canvas usage query - fixes #34513
Browse files Browse the repository at this point in the history
  • Loading branch information
peterschretlen authored Apr 4, 2019
1 parent ea1c8d5 commit 53cc4ff
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion x-pack/plugins/canvas/server/usage/collector.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,10 @@ export function registerCanvasUsageCollector(server) {
size: 10000, // elasticsearch index.max_result_window default value
index,
ignoreUnavailable: true,
filterPath: ['hits.hits._source.canvas-workpad'],
filterPath: [
'hits.hits._source.canvas-workpad',
'-hits.hits._source.canvas-workpad.assets',
],
body: { query: { bool: { filter: { term: { type: CANVAS_TYPE } } } } },
};

Expand Down

0 comments on commit 53cc4ff

Please sign in to comment.