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
This commit is contained in:
Matthew Bargar 2016-07-21 10:34:15 -04:00
parent 0724220241
commit 298ee35a4e

View file

@ -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' },