Merge pull request #2755 from Dieken/patch-1
fix duplicate tag value suggestions and relax limit on /api/search/lookup
This commit is contained in:
@@ -93,11 +93,13 @@ function (angular, _, kbn) {
|
||||
|
||||
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;
|
||||
var tagvs = [];
|
||||
_.each(result, function(r) {
|
||||
tagvs.push(r.tags[key]);
|
||||
if (tagvs.indexOf(r.tags[key]) === -1) {
|
||||
tagvs.push(r.tags[key]);
|
||||
}
|
||||
});
|
||||
return tagvs;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user