Commit f42955ab by Torkel Ödegaard

Merge pull request #2755 from Dieken/patch-1

fix duplicate tag value suggestions and relax limit on /api/search/lookup
parents a7cc36f7 4fccfbf5
...@@ -93,11 +93,13 @@ function (angular, _, kbn) { ...@@ -93,11 +93,13 @@ function (angular, _, kbn) {
var m = metric + "{" + key + "=*}"; var m = metric + "{" + key + "=*}";
return this._get('/api/search/lookup', {m: m}).then(function(result) { return this._get('/api/search/lookup', {m: m, limit: 3000}).then(function(result) {
result = result.data.results; result = result.data.results;
var tagvs = []; var tagvs = [];
_.each(result, function(r) { _.each(result, function(r) {
if (tagvs.indexOf(r.tags[key]) === -1) {
tagvs.push(r.tags[key]); tagvs.push(r.tags[key]);
}
}); });
return tagvs; return tagvs;
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment