-
Notifications
You must be signed in to change notification settings - Fork 30
Improve Elasticsearch mappings #181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: Marc <[email protected]> Co-authored-by: Marc Huffnagle <[email protected]>
* PR template: put related issues in list for rich formatting * fix path of api.yaml in webpack, add npm build to GH Action
* define routes for transaction endpoints
Co-authored-by: Phil Varner <[email protected]>
) * Maintain created time when reingesting an item * Remove typechecking of tests * Update CHANGELOG.md Co-authored-by: Phil Varner <[email protected]> * Consolidate tests * Fix test * Replace items rather than parti-update * Remove ts-check in test * Update docs Co-authored-by: Phil Varner <[email protected]>
It looks like the |
Yeah, I though I had, and I'm not sure what even happened there. It's up to date now. |
@@ -1703,7 +1703,7 @@ null | |||
], | |||
"exclude": [ | |||
[ | |||
"eo:sun_azimuth" | |||
"view:sun_azimuth" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this field used to be in the EO extension, is now in the View extension.
@@ -1,14 +1,15 @@ | |||
const common = require('./common') | |||
const dynamicTemplates = require('./dynamicTemplates') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was the only thing in common, so I made it more explicit.
numerics: { | ||
match_mapping_type: 'long', | ||
mapping: { type: 'float' } | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we now default to mapping any field that's not otherwise explicitly mapped to float instead of long, to avoid a situation where the first time the field and has a non-decimal value that it gets mapped to long, and then all other values for that field, even if they're decimal, will be truncated to longs in the index
} | ||
}, | ||
{ | ||
proj_projjson: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a complex object with several different variations. attempting to index a variation that is different than the first one indexed can result in an error, see #108
@@ -562,7 +562,7 @@ components: | |||
max: '2019-07-10T13:44:56Z' | |||
'sci:citation': | |||
- 'Copernicus Sentinel data [Year]' | |||
'eo:gsd': | |||
'gsd': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gsd used to be in the EO extension, now it's part of the STAC Commons fields that have no prefix.
okay, now it's ready for review @marchuffnagle |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just a couple questions.
PR comments resolved. |
Related Issue(s):
Proposed Changes:
PR Checklist: