From feb54436e46c5e74424f6eb6f83b62b1b247e52a Mon Sep 17 00:00:00 2001 From: James Gowdy Date: Mon, 15 Mar 2021 12:25:07 +0000 Subject: [PATCH] fixing missing runtime fields --- .../models/bucket_span_estimator/bucket_span_estimator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/ml/server/models/bucket_span_estimator/bucket_span_estimator.js b/x-pack/plugins/ml/server/models/bucket_span_estimator/bucket_span_estimator.js index 5e96df10388ff..29961918e7aba 100644 --- a/x-pack/plugins/ml/server/models/bucket_span_estimator/bucket_span_estimator.js +++ b/x-pack/plugins/ml/server/models/bucket_span_estimator/bucket_span_estimator.js @@ -293,7 +293,7 @@ export function estimateBucketSpanFactory(client) { const NUM_PARTITIONS = 10; // use a partitioned search to load 10 random fields // load ten fields, to test that there are at least 10. - getFieldCardinality(index, field, indicesOptions) + getFieldCardinality(index, field, runtimeMappings, indicesOptions) .then((value) => { const numPartitions = Math.floor(value / NUM_PARTITIONS) || 1; asCurrentUser