Exclude assets from canvas usage query - fixes #34513

This commit is contained in:
Peter 2019-04-04 13:19:58 -04:00 committed by GitHub
parent f1048be2c3
commit 126b119b5a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 } } } } },
};