Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,7 @@ static Map<String, IndexFieldCapabilities> retrieveFieldCaps(
if (filter.test(ft)) {
IndexFieldCapabilities fieldCap = new IndexFieldCapabilities(
field,
// This is a nasty hack so that we expose aggregate_metric_double field,
// when the index is a time series index and the field is marked as metric.
// This code should be reverted once PR https://github.com/elastic/elasticsearch/pull/87849
// is merged.
isTimeSeriesIndex && ft.getMetricType() != null ? ft.typeName() : ft.familyTypeName(),
ft.familyTypeName(),
context.isMetadataField(field),
ft.isSearchable(),
ft.isAggregatable(),
Expand Down