From d79c27c764cca24badf76c4ffa9420ce9c84bcf0 Mon Sep 17 00:00:00 2001 From: Spencer Date: Fri, 22 Jan 2016 16:13:19 -0700 Subject: [PATCH] Revert "[savedObjects] change the number mappings to be 'long'" Fixes #5983 --- .../kibana/public/dashboard/services/_saved_dashboard.js | 4 ++-- .../kibana/public/discover/saved_searches/_saved_search.js | 4 ++-- .../public/visualize/saved_visualizations/_saved_vis.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/plugins/kibana/public/dashboard/services/_saved_dashboard.js b/src/plugins/kibana/public/dashboard/services/_saved_dashboard.js index 5181b05fc5691..d7115a9bcfca4 100644 --- a/src/plugins/kibana/public/dashboard/services/_saved_dashboard.js +++ b/src/plugins/kibana/public/dashboard/services/_saved_dashboard.js @@ -47,12 +47,12 @@ define(function (require) { // if type:dashboard has no mapping, we push this mapping into ES SavedDashboard.mapping = { title: 'string', - hits: 'long', + hits: 'integer', description: 'string', panelsJSON: 'string', optionsJSON: 'string', uiStateJSON: 'string', - version: 'long', + version: 'integer', timeRestore: 'boolean', timeTo: 'string', timeFrom: 'string', diff --git a/src/plugins/kibana/public/discover/saved_searches/_saved_search.js b/src/plugins/kibana/public/discover/saved_searches/_saved_search.js index 117f1c375af59..0f678b49770cb 100644 --- a/src/plugins/kibana/public/discover/saved_searches/_saved_search.js +++ b/src/plugins/kibana/public/discover/saved_searches/_saved_search.js @@ -33,10 +33,10 @@ define(function (require) { SavedSearch.mapping = { title: 'string', description: 'string', - hits: 'long', + hits: 'integer', columns: 'string', sort: 'string', - version: 'long' + version: 'integer' }; SavedSearch.searchSource = true; diff --git a/src/plugins/kibana/public/visualize/saved_visualizations/_saved_vis.js b/src/plugins/kibana/public/visualize/saved_visualizations/_saved_vis.js index 839889bb35486..f7ce3e56bb22c 100644 --- a/src/plugins/kibana/public/visualize/saved_visualizations/_saved_vis.js +++ b/src/plugins/kibana/public/visualize/saved_visualizations/_saved_vis.js @@ -48,7 +48,7 @@ define(function (require) { uiStateJSON: 'string', description: 'string', savedSearchId: 'string', - version: 'long' + version: 'integer' }; SavedVis.searchSource = true;