How to use the searchkit.GeoBoundsMetric function in searchkit

To help you get started, we’ve selected a few searchkit examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github gaving / searchkit-geomap / src / GeoAccessor.js View on Github external
buildOwnQuery(query) {
    return query.setAggs(
      new FilterBucket(
        'geo',
        query.getFilters(),
        new GeohashBucket('areas', 'location', {}, new GeoBoundsMetric('cell', 'location')),
        {},
        new GeoBoundsMetric('bounds', 'location')
      )
    );
  }
}
github searchkit / searchkit-demo / src / app / src / crime / CrimeAggs.tsx View on Github external
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")
    ))
  }
}
github searchkit / searchkit-demo / src / app / src / crime / CrimeAggs.tsx View on Github external
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")
    ))
  }
}
github gaving / searchkit-geomap / src / GeoAccessor.js View on Github external
buildOwnQuery(query) {
    return query.setAggs(
      new FilterBucket(
        'geo',
        query.getFilters(),
        new GeohashBucket('areas', 'location', {}, new GeoBoundsMetric('cell', 'location')),
        {},
        new GeoBoundsMetric('bounds', 'location')
      )
    );
  }
}