Telemetry/Canvas Use filter context for querying workpads (#23857) (#24174)

This commit is contained in:
Tim Sullivan 2018-10-19 12:03:25 -07:00 committed by GitHub
parent be53605c5b
commit ea221a4efb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -138,7 +138,7 @@ export function registerCanvasUsageCollector(server) {
index,
ignoreUnavailable: true,
filterPath: ['hits.hits._source.canvas-workpad'],
body: { query: { term: { type: { value: CANVAS_TYPE } } } },
body: { query: { bool: { filter: { term: { type: CANVAS_TYPE } } } } },
};
const esResponse = await callCluster('search', searchParams);