elasticsearch: improve validation and error message when adding/testing elasticsearch ds, #7836

This commit is contained in:
Torkel Ödegaard
2017-03-29 16:03:15 +02:00
parent 5702c57452
commit 3b235612fd
2 changed files with 18 additions and 6 deletions

View File

@@ -280,10 +280,12 @@ function (queryDef) {
}
});
}
var size = 500;
if(queryDef.size){
if (queryDef.size) {
size = queryDef.size;
}
query.aggs = {
"1": {
"terms": {