Procházet zdrojové kódy

merged with master and fixed ES issue

Torkel Ödegaard před 10 roky
rodič
revize
03aa997673

+ 2 - 3
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 } } },
         facets: { tags: { terms: { field: "tags", order: "term", size: 50 } } },
         size: this.searchMaxResults,
         size: this.searchMaxResults,
         sort: ["_uid"],
         sort: ["_uid"],
-        fields: ["title", "tags"]
       };
       };
 
 
       return this._post('/dashboard/_search', query)
       return this._post('/dashboard/_search', query)
@@ -282,8 +281,8 @@ function (angular, _, config, kbn, moment) {
             var hit = resultsHits[i];
             var hit = resultsHits[i];
             displayHits.dashboards.push({
             displayHits.dashboards.push({
               id: hit._id,
               id: hit._id,
-              title: hit.fields.title,
-              tags: hit.fields.tags
+              title: hit._source.title,
+              tags: hit._source.tags
             });
             });
           }
           }