Unify default value
This commit is contained in:
@@ -452,7 +452,7 @@ func (b *aggBuilderImpl) Filters(key string, fn func(a *FiltersAggregation, b Ag
|
|||||||
func (b *aggBuilderImpl) GeoHashGrid(key, field string, fn func(a *GeoHashGridAggregation, b AggBuilder)) AggBuilder {
|
func (b *aggBuilderImpl) GeoHashGrid(key, field string, fn func(a *GeoHashGridAggregation, b AggBuilder)) AggBuilder {
|
||||||
innerAgg := &GeoHashGridAggregation{
|
innerAgg := &GeoHashGridAggregation{
|
||||||
Field: field,
|
Field: field,
|
||||||
Precision: 5,
|
Precision: 3,
|
||||||
}
|
}
|
||||||
aggDef := newAggDef(key, &aggContainer{
|
aggDef := newAggDef(key, &aggContainer{
|
||||||
Type: "geohash_grid",
|
Type: "geohash_grid",
|
||||||
|
|||||||
+1
-1
@@ -61,7 +61,7 @@ export const useDescription = (bucketAgg: BucketAggregation): string => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
case 'geohash_grid': {
|
case 'geohash_grid': {
|
||||||
const precision = Math.max(Math.min(parseInt(bucketAgg.settings?.precision || '5', 10), 12), 1);
|
const precision = Math.max(Math.min(parseInt(bucketAgg.settings?.precision || '3', 10), 12), 1);
|
||||||
return `Precision: ${precision}`;
|
return `Precision: ${precision}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user