Commit b8f2818
Quick and harmless fix to help with alternate OpenSearch schemas (#553)
**Related Issue(s):**
- Partly helps with
#544
(I did not want to create a new ticket which could be redundant with
this one)
**Description:**
Have opensearch datetime, geometry and collections fields defined as
constant string so to be easily overwritten when the OpenSearch mapping
requires it, as shown in example
https://github.com/NASA-PDS/registry-stac-api/blob/464ce37952367fa845b325e36263b04a1fd89965/src/pds/registry/stac/database_logic.py#L28
**PR Checklist:**
- [x] Code is formatted and linted (run `pre-commit run --all-files`)
- [x] Tests pass (run `make test`)
- [x] Documentation has been updated to reflect changes, if applicable
- [x] Changes are added to the changelog
---------
Co-authored-by: thomas loubrieu <thomas.loubrieu@jpl.nasa.gov>
Co-authored-by: Jonathan Healy <jonathan.d.healy@gmail.com>1 parent 0b09269 commit b8f2818
File tree
4 files changed
+272
-98
lines changed- stac_fastapi
- elasticsearch/stac_fastapi/elasticsearch
- opensearch/stac_fastapi/opensearch
4 files changed
+272
-98
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
| 23 | + | |
| 24 | + | |
22 | 25 | | |
23 | 26 | | |
24 | 27 | | |
| |||
0 commit comments