Skip to content

Commit 202933a

Browse files
authored
Elasticsearch: relax properties query for indexes with varying mappings
1 parent 77f3a55 commit 202933a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pygeoapi/provider/elasticsearch_.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -489,8 +489,8 @@ def esdoc2geojson(self, doc):
489489
try:
490490
feature_thinned['properties'][p] = feature_['properties'][p] # noqa
491491
except KeyError as err:
492-
LOGGER.error(err)
493-
raise ProviderQueryError()
492+
msg = f'Property missing {err}; continuing')
493+
LOGGER.warning(msg)
494494

495495
if feature_thinned:
496496
return feature_thinned

0 commit comments

Comments
 (0)