Skip to content

Commit 3ccb941

Browse files
committed
Update geopoint to geoshape
Why these changes are being introduced: * Given that OpenSearch can process WKT strings and the values tend to be bounding boxes rather than points, we will use the geo_shape type instead of the geo_point type How this addresses that need: * Update geopoint > geoshape in OpenSearch mapping * Remove include_in_parent property from locations field Side effects of this change: * This will impact how the TIMDEX API constructs queries Relevant ticket(s): * https://mitlibraries.atlassian.net/browse/GDT-116
1 parent 4a49d30 commit 3ccb941

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

config/opensearch_mappings.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -257,10 +257,9 @@
257257
},
258258
"locations": {
259259
"type": "nested",
260-
"include_in_parent": "true",
261260
"properties": {
262-
"geopoint": {
263-
"type": "geo_point"
261+
"geoshape": {
262+
"type": "geo_shape"
264263
},
265264
"kind": {
266265
"type": "keyword",
@@ -400,4 +399,4 @@
400399
}
401400
}
402401
}
403-
}
402+
}

0 commit comments

Comments
 (0)