Skip to content

Commit 80ae53f

Browse files
committed
update collections mappings
1 parent 90f25de commit 80ae53f

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

CHANGELOG.md

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

99
## [Unreleased]
1010

11+
### Added
12+
13+
- Added support for Collections search
14+
1115
## [v6.0.0] - 2025-06-22
1216

1317
### Added

stac_fastapi/sfeos_helpers/stac_fastapi/sfeos_helpers/mappings.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,17 @@ class Geometry(Protocol): # noqa
158158
"dynamic_templates": ES_MAPPINGS_DYNAMIC_TEMPLATES,
159159
"properties": {
160160
"id": {"type": "keyword"},
161-
"extent.spatial.bbox": {"type": "long"},
162-
"extent.temporal.interval": {"type": "date"},
161+
"bbox_shape": {"type": "geo_shape"}, # Only this is used for spatial queries
162+
"extent": {
163+
"properties": {"temporal": {"properties": {"interval": {"type": "date"}}}}
164+
},
165+
"properties": {
166+
"properties": {
167+
"datetime": {"type": "date"},
168+
"start_datetime": {"type": "date"},
169+
"end_datetime": {"type": "date"},
170+
}
171+
},
163172
"providers": {"type": "object", "enabled": False},
164173
"links": {"type": "object", "enabled": False},
165174
"item_assets": {"type": "object", "enabled": False},

0 commit comments

Comments
 (0)