From 03aa997673d50cd249c0f42872e4adb3356de71e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Thu, 26 Mar 2015 12:14:37 +0100 Subject: [PATCH] merged with master and fixed ES issue --- src/app/plugins/datasource/elasticsearch/datasource.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/app/plugins/datasource/elasticsearch/datasource.js b/src/app/plugins/datasource/elasticsearch/datasource.js index 0cf66a24eb0..976954368ed 100644 --- a/src/app/plugins/datasource/elasticsearch/datasource.js +++ b/src/app/plugins/datasource/elasticsearch/datasource.js @@ -266,7 +266,6 @@ function (angular, _, config, kbn, moment) { facets: { tags: { terms: { field: "tags", order: "term", size: 50 } } }, size: this.searchMaxResults, sort: ["_uid"], - fields: ["title", "tags"] }; return this._post('/dashboard/_search', query) @@ -282,8 +281,8 @@ function (angular, _, config, kbn, moment) { var hit = resultsHits[i]; displayHits.dashboards.push({ id: hit._id, - title: hit.fields.title, - tags: hit.fields.tags + title: hit._source.title, + tags: hit._source.tags }); }