diff --git a/conf/fix-enriched.fix b/conf/fix-enriched.fix index d725838..e749fe5 100644 --- a/conf/fix-enriched.fix +++ b/conf/fix-enriched.fix @@ -290,6 +290,16 @@ elsif exists("@geoLookupDbs") copy_field("@geoLookupDbsLon","@visitorLocation.geo.lon") end +# Workaround for failing pelias lookups + +unless exists("@visitorLocation.geo.lon") + remove_field("@visitorLocation.geo") +end + +unless exists("@visitorLocation.geo.lat") + remove_field("@visitorLocation.geo") +end + if exists("@visitorLocation") add_field("@visitorLocation.type","Place") end