Commit ebec02ff by bergquist

style(elastic): minor code style changes

parent 99c5f7d5
...@@ -70,7 +70,6 @@ function (queryDef) { ...@@ -70,7 +70,6 @@ function (queryDef) {
ElasticQueryBuilder.prototype.getFiltersAgg = function(aggDef) { ElasticQueryBuilder.prototype.getFiltersAgg = function(aggDef) {
var filterObj = {}; var filterObj = {};
for (var i = 0; i < aggDef.settings.filters.length; i++) { for (var i = 0; i < aggDef.settings.filters.length; i++) {
var query = aggDef.settings.filters[i].query; var query = aggDef.settings.filters[i].query;
...@@ -106,7 +105,6 @@ function (queryDef) { ...@@ -106,7 +105,6 @@ function (queryDef) {
} }
var i, filter, condition; var i, filter, condition;
for (i = 0; i < adhocFilters.length; i++) { for (i = 0; i < adhocFilters.length; i++) {
filter = adhocFilters[i]; filter = adhocFilters[i];
condition = {}; condition = {};
...@@ -123,8 +121,7 @@ function (queryDef) { ...@@ -123,8 +121,7 @@ function (queryDef) {
target.timeField = this.timeField; target.timeField = this.timeField;
var i, nestedAggs, metric; var i, nestedAggs, metric;
var query = {}; var query = {
query = {
"size": 0, "size": 0,
"query": { "query": {
"bool": { "bool": {
...@@ -216,9 +213,7 @@ function (queryDef) { ...@@ -216,9 +213,7 @@ function (queryDef) {
}; };
ElasticQueryBuilder.prototype.getTermsQuery = function(queryDef) { ElasticQueryBuilder.prototype.getTermsQuery = function(queryDef) {
var query; var query = {
query = {
"size": 0, "size": 0,
"query": { "query": {
"bool": { "bool": {
......
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