diff --git a/x-pack/plugins/ml/public/application/data_frame_analytics/common/analytics.ts b/x-pack/plugins/ml/public/application/data_frame_analytics/common/analytics.ts index d13007640dae8..49f3f2311a938 100644 --- a/x-pack/plugins/ml/public/application/data_frame_analytics/common/analytics.ts +++ b/x-pack/plugins/ml/public/application/data_frame_analytics/common/analytics.ts @@ -69,9 +69,10 @@ export const defaultSearchQuery = { export const getDefaultTrainingFilterQuery = (resultsField: string, isTraining: boolean) => ({ bool: { - must: [ + minimum_should_match: 1, + should: [ { - term: { [`${resultsField}.is_training`]: { value: isTraining } }, + match: { [`${resultsField}.is_training`]: isTraining }, }, ], },