diff --git a/x-pack/plugins/ml/public/application/util/index_utils.ts b/x-pack/plugins/ml/public/application/util/index_utils.ts index 1a8b65f4e2bbd..b4f46d4df0cbb 100644 --- a/x-pack/plugins/ml/public/application/util/index_utils.ts +++ b/x-pack/plugins/ml/public/application/util/index_utils.ts @@ -18,7 +18,7 @@ let indexPatternsContract: DataViewsContract | null = null; export async function loadIndexPatterns(indexPatterns: DataViewsContract) { indexPatternsContract = indexPatterns; const dataViewsContract = getDataViews(); - indexPatternCache = await dataViewsContract.find('*'); + indexPatternCache = await dataViewsContract.find('*', 10000); return indexPatternCache; } diff --git a/x-pack/plugins/ml/server/models/job_service/new_job_caps/rollup.ts b/x-pack/plugins/ml/server/models/job_service/new_job_caps/rollup.ts index 0120879f9bd4f..87504a1bc0e10 100644 --- a/x-pack/plugins/ml/server/models/job_service/new_job_caps/rollup.ts +++ b/x-pack/plugins/ml/server/models/job_service/new_job_caps/rollup.ts @@ -65,7 +65,7 @@ async function loadRollupIndexPattern( indexPattern: string, dataViewsService: DataViewsService ): Promise { - const resp = await dataViewsService.find('*'); + const resp = await dataViewsService.find('*', 10000); const obj = resp.find( (dv) => dv.type === 'rollup' && dv.title === indexPattern && dv.typeMeta !== undefined );