From 1b9a6465d86e84374602518d9ac22463c00880e4 Mon Sep 17 00:00:00 2001 From: Spencer Alger Date: Thu, 21 May 2015 08:08:19 -0700 Subject: [PATCH] [savedObjects] change the number mappings to be 'long' Since JavaScript numbers can't actually be integers we don't really care about the difference between int and long, but since the long is the default type it makes things more frictionless --- src/kibana/plugins/dashboard/services/_saved_dashboard.js | 4 ++-- src/kibana/plugins/discover/saved_searches/_saved_search.js | 6 +++--- .../plugins/visualize/saved_visualizations/_saved_vis.js | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/kibana/plugins/dashboard/services/_saved_dashboard.js b/src/kibana/plugins/dashboard/services/_saved_dashboard.js index 6fda1be88703..05c9a0813810 100644 --- a/src/kibana/plugins/dashboard/services/_saved_dashboard.js +++ b/src/kibana/plugins/dashboard/services/_saved_dashboard.js @@ -21,10 +21,10 @@ define(function (require) { // if type:dashboard has no mapping, we push this mapping into ES mapping: { title: 'string', - hits: 'integer', + hits: 'long', description: 'string', panelsJSON: 'string', - version: 'integer', + version: 'long', timeRestore: 'boolean', timeTo: 'string', timeFrom: 'string' diff --git a/src/kibana/plugins/discover/saved_searches/_saved_search.js b/src/kibana/plugins/discover/saved_searches/_saved_search.js index 954882126434..5a2b65043cf5 100644 --- a/src/kibana/plugins/discover/saved_searches/_saved_search.js +++ b/src/kibana/plugins/discover/saved_searches/_saved_search.js @@ -19,10 +19,10 @@ define(function (require) { mapping: { title: 'string', description: 'string', - hits: 'integer', + hits: 'long', columns: 'string', sort: 'string', - version: 'integer' + version: 'long' }, defaults: { @@ -42,4 +42,4 @@ define(function (require) { return SavedSearch; }); -}); \ No newline at end of file +}); diff --git a/src/kibana/plugins/visualize/saved_visualizations/_saved_vis.js b/src/kibana/plugins/visualize/saved_visualizations/_saved_vis.js index 352e8cdca951..09caa86ceb01 100644 --- a/src/kibana/plugins/visualize/saved_visualizations/_saved_vis.js +++ b/src/kibana/plugins/visualize/saved_visualizations/_saved_vis.js @@ -25,7 +25,7 @@ define(function (require) { visState: 'json', description: 'string', savedSearchId: 'string', - version: 'integer' + version: 'long' }, defaults: {