Skip to content

Commit

Permalink
revert default ES precision back to 5mi as as the default 50m greatly…
Browse files Browse the repository at this point in the history
… increases storage requirements
  • Loading branch information
matthewhanson committed Jun 3, 2019
1 parent 904e775 commit 4c87fc9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Add `fields` filter to return only specific fields
- Added SATAPI_URL environment variable for defining a custom root URL used for creating hierarchical links. Otherwise, the root URL will try to be inferred from the headers.
- Gzip compression added for clients that support it (via `Accept-Encoding`)
- Added SATAPI_ES_PRECISION environment variable to change the precision for underlying intersection geometry queries.
- Added SATAPI_ES_PRECISION environment variable to change the precision for underlying intersection geometry queries. This will have an adverse impact on performance and storage size. If changed after ingestion, a reindex operation will need to be performed. It defaults to '5mi' (5 miles).

### Fixed
- Fix datetime range to be inclusive (i.e., gte and lte)
- Fixed `next` links to properly stringify geometries

### Changed
- Default precision for geometry queries in the Elasticsearch backend is now 50meters rather than 5miles. As this may have an adverse impact on performance, it can be changed by setting the SATAPI_ES_PRECISION envvar. If changed after ingestion, a reindex operation will need to be performed. Use "5mi" to keep the old value.


## [v0.2.3] - 2019-01-29

Expand Down
2 changes: 1 addition & 1 deletion packages/api-lib/libs/es.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ async function prepare(index) {
const client = await esClient()
const indexExists = await client.indices.exists({ index })
if (!indexExists) {
const precision = process.env.SATAPI_ES_PRECISION || '50m'
const precision = process.env.SATAPI_ES_PRECISION || '5mi'
const payload = {
index,
body: {
Expand Down

0 comments on commit 4c87fc9

Please sign in to comment.