Skip to content

Commit 0376d5b

Browse files
author
Phil Varner
authored
fix issue with grid code aggregations only returning 10 (#547)
1 parent edf4e20 commit 0376d5b

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
77

88
## [Unreleased] - TBD
99

10+
### Fixed
11+
12+
- Aggregations 'grid_code_frequency' and 'grid_code_landsat_frequency' were inadvertently
13+
configured to only return 10 results, now they return all results.
14+
1015
### Added
1116

1217
- Added API Gateway logging config to example serverless.yml config.

src/lib/database.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,7 @@ const ALL_AGGREGATIONS = {
554554
terms: {
555555
field: 'properties.grid:code',
556556
missing: 'none',
557+
size: 10000,
557558
}
558559
},
559560
grid_code_landsat_frequency: {
@@ -565,7 +566,8 @@ const ALL_AGGREGATIONS = {
565566
source: "return 'WRS' + _value + '-' + "
566567
+ "doc['properties.landsat:wrs_path'].value + "
567568
+ "doc['properties.landsat:wrs_row'].value"
568-
}
569+
},
570+
size: 10000,
569571
}
570572
},
571573
sun_elevation_frequency: {

0 commit comments

Comments
 (0)