Skip to content

Commit 6b7379a

Browse files
committed
do not index proj:geometry and proj:centroid as geo fields
1 parent 2fdabc2 commit 6b7379a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

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

2121
- Corrected the closing of client connections in ES index management functions [#132](https://github.com/stac-utils/stac-fastapi-elasticsearch/issues/132)
2222
- Corrected the automatic converstion of float values to int when building Filter Clauses [#135](https://github.com/stac-utils/stac-fastapi-elasticsearch/issues/135)
23+
- Do not index `proj:geometry` and `proj:centroid` fields as geo shapes [#154](https://github.com/stac-utils/stac-fastapi-elasticsearch/issues/154)
2324

2425
## [v0.3.0]
2526

stac_fastapi/elasticsearch/stac_fastapi/elasticsearch/database_logic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,13 @@
6767
{
6868
"proj_centroid": {
6969
"match": "proj:centroid",
70-
"mapping": {"type": "geo_point"},
70+
"mapping": {"type": "object", "enabled": False},
7171
}
7272
},
7373
{
7474
"proj_geometry": {
7575
"match": "proj:geometry",
76-
"mapping": {"type": "geo_shape"},
76+
"mapping": {"type": "object", "enabled": False},
7777
}
7878
},
7979
{

0 commit comments

Comments
 (0)