Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
buildOwnQuery(query) {
return query.setAggs(
new FilterBucket(
'geo',
query.getFilters(),
new GeohashBucket('areas', 'location', {}, new GeoBoundsMetric('cell', 'location')),
{},
new GeoBoundsMetric('bounds', 'location')
)
);
}
}
buildOwnQuery(query){
return query.setAggs(FilterBucket(
"geo", query.getFilters(),
GeohashBucket(
"areas", "location",
{precision:this.precision, size:100},
GeoBoundsMetric("cell", "location")
),
SignificantTermsBucket("significant","crime_type.raw", {size:2}),
GeoBoundsMetric("bounds", "location")
))
}
}
buildOwnQuery(query){
return query.setAggs(FilterBucket(
"geo", query.getFilters(),
GeohashBucket(
"areas", "location",
{precision:this.precision, size:100},
GeoBoundsMetric("cell", "location")
),
SignificantTermsBucket("significant","crime_type.raw", {size:2}),
GeoBoundsMetric("bounds", "location")
))
}
}
buildOwnQuery(query) {
return query.setAggs(
new FilterBucket(
'geo',
query.getFilters(),
new GeohashBucket('areas', 'location', {}, new GeoBoundsMetric('cell', 'location')),
{},
new GeoBoundsMetric('bounds', 'location')
)
);
}
}