Elasticsearch: Increase maximum geohash aggregation precision to 12 (#27539)

This commit is contained in:
Giordano Ricci 2020-09-15 09:15:18 +01:00 committed by GitHub
parent a0beaa3bbe
commit e350e1fff6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -144,8 +144,8 @@ export class ElasticBucketAggCtrl {
break;
}
case 'geohash_grid': {
// limit precision to 7
settings.precision = Math.max(Math.min(settings.precision, 7), 1);
// limit precision to 12
settings.precision = Math.max(Math.min(settings.precision, 12), 1);
settingsLinkText = 'Precision: ' + settings.precision;
break;
}