From 298ee35a4e88f11b8352aa16789e7824128b387c Mon Sep 17 00:00:00 2001 From: Matthew Bargar Date: Thu, 21 Jul 2016 10:34:15 -0400 Subject: [PATCH] Support new half_float and scaled_float field types Elasticsearch added a couple of new numeric datatypes, which means we need to update our type casting list to include them. Kibana should see them as "numbers" so they work properly in searches and aggs. Fixes https://github.com/elastic/kibana/issues/7782 Related https://github.com/elastic/elasticsearch/pull/18887 Related https://github.com/elastic/elasticsearch/pull/19264 --- src/ui/public/index_patterns/_cast_mapping_type.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ui/public/index_patterns/_cast_mapping_type.js b/src/ui/public/index_patterns/_cast_mapping_type.js index 760a67255a194..bfeab98c2a171 100644 --- a/src/ui/public/index_patterns/_cast_mapping_type.js +++ b/src/ui/public/index_patterns/_cast_mapping_type.js @@ -12,6 +12,8 @@ export default function CastMappingTypeFn() { { name: 'date', type: 'date', group: 'base' }, { name: 'boolean', type: 'boolean', group: 'base' }, { name: 'float', type: 'number', group: 'number' }, + { name: 'half_float', type: 'number', group: 'number' }, + { name: 'scaled_float', type: 'number', group: 'number' }, { name: 'double', type: 'number', group: 'number' }, { name: 'integer', type: 'number', group: 'number' }, { name: 'long', type: 'number', group: 'number' },