mirror of
https://github.com/grafana/grafana.git
synced 2025-02-15 10:03:33 -06:00
Limit ElasticSearch return to title and tags
This commit is contained in:
parent
15cb1d8980
commit
527e802b05
@ -270,7 +270,8 @@ function (angular, _, config, kbn, moment) {
|
||||
query: { query_string: { query: queryString } },
|
||||
facets: { tags: { terms: { field: "tags", order: "term", size: 50 } } },
|
||||
size: this.searchMaxResults,
|
||||
sort: ["_uid"]
|
||||
sort: ["_uid"],
|
||||
fields: ["title", "tags"]
|
||||
};
|
||||
|
||||
return this._post('/dashboard/_search', query)
|
||||
@ -286,8 +287,8 @@ function (angular, _, config, kbn, moment) {
|
||||
var hit = resultsHits[i];
|
||||
displayHits.dashboards.push({
|
||||
id: hit._id,
|
||||
title: hit._source.title,
|
||||
tags: hit._source.tags
|
||||
title: hit.fields.title,
|
||||
tags: hit.fields.tags
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user