diff --git a/public/app/plugins/datasource/elasticsearch/datasource.js b/public/app/plugins/datasource/elasticsearch/datasource.js index f6095271b8e..8e736c75e6f 100644 --- a/public/app/plugins/datasource/elasticsearch/datasource.js +++ b/public/app/plugins/datasource/elasticsearch/datasource.js @@ -283,42 +283,6 @@ function (angular, _, moment, kbn, ElasticQueryBuilder, IndexPattern, ElasticRes return this.getTerms(query); } }; - - this.getDashboard = function(id) { - return this._get('/dashboard/' + id) - .then(function(result) { - return angular.fromJson(result._source.dashboard); - }); - }; - - this.searchDashboards = function() { - var query = { - query: { query_string: { query: '*' } }, - size: 10000, - sort: ["_uid"], - }; - - return this._post(this.index + '/dashboard/_search', query) - .then(function(results) { - if(_.isUndefined(results.hits)) { - return { dashboards: [], tags: [] }; - } - - var resultsHits = results.hits.hits; - var displayHits = { dashboards: [] }; - - for (var i = 0, len = resultsHits.length; i < len; i++) { - var hit = resultsHits[i]; - displayHits.dashboards.push({ - id: hit._id, - title: hit._source.title, - tags: hit._source.tags - }); - } - - return displayHits; - }); - }; } return {