Skip to content

Commit

Permalink
rename for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasneirynck committed Sep 22, 2020
1 parent 6407703 commit bd26b12
Showing 1 changed file with 3 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -257,12 +257,7 @@ export class ESGeoGridSource extends AbstractESAggSource {
return features;
}

_addNonCompositeAggregationsToSearchSource(
searchSource,
indexPattern,
precision,
bufferedExtent
) {
_addNonCompositeAggsToSearchSource(searchSource, indexPattern, precision, bufferedExtent) {
searchSource.setField('aggs', {
[GEOTILE_GRID_AGG_NAME]: {
geotile_grid: {
Expand Down Expand Up @@ -294,12 +289,7 @@ export class ESGeoGridSource extends AbstractESAggSource {
registerCancelCallback,
bufferedExtent,
}) {
this._addNonCompositeAggregationsToSearchSource(
searchSource,
indexPattern,
precision,
bufferedExtent
);
this._addNonCompositeAggsToSearchSource(searchSource, indexPattern, precision, bufferedExtent);

const esResponse = await this._runEsQuery({
requestId: this.getId(),
Expand Down Expand Up @@ -363,7 +353,7 @@ export class ESGeoGridSource extends AbstractESAggSource {
const indexPattern = await this.getIndexPattern();
const searchSource = await this.makeSearchSource(searchFilters, 0);

this._addNonCompositeAggregationsToSearchSource(
this._addNonCompositeAggsToSearchSource(
searchSource,
indexPattern,
null, // needs to be set server-side
Expand Down

0 comments on commit bd26b12

Please sign in to comment.