This commit is contained in:
Peter 2019-04-04 12:05:42 -04:00 committed by GitHub
parent 26add272e0
commit 7dbb702b35
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 } } } } },
};