- .keyval('type', result.category[1])\
- .keyval('admin_level', result.admin_level)\
- .keyval('localname', result.locale_name or '')\
- .keyval('names', result.names or {})\
- .keyval('addresstags', result.address or {})\
- .keyval_not_none('housenumber', result.housenumber)\
- .keyval_not_none('calculated_postcode', result.postcode)\
- .keyval_not_none('country_code', result.country_code)\
- .keyval_not_none('indexed_date', result.indexed_date, lambda v: v.isoformat())\
- .keyval_not_none('importance', result.importance)\
- .keyval('calculated_importance', result.calculated_importance())\
- .keyval('extratags', result.extratags or {})\
- .keyval_not_none('calculated_wikipedia', result.wikipedia)\
- .keyval('rank_address', result.rank_address)\
- .keyval('rank_search', result.rank_search)\
- .keyval('isarea', 'Polygon' in (geom or result.geometry.get('type') or ''))\
- .key('centroid').raw(centroid).next()\
- .key('geometry').raw(geom or centroid).next()
+ .keyval('type', result.category[1])\
+ .keyval('admin_level', result.admin_level)\
+ .keyval('localname', result.locale_name or '')\
+ .keyval('names', result.names or {})\
+ .keyval('addresstags', result.address or {})\
+ .keyval_not_none('housenumber', result.housenumber)\
+ .keyval_not_none('calculated_postcode', result.postcode)\
+ .keyval_not_none('country_code', result.country_code)\
+ .keyval_not_none('indexed_date', result.indexed_date, lambda v: v.isoformat())\
+ .keyval_not_none('importance', result.importance)\
+ .keyval('calculated_importance', result.calculated_importance())\
+ .keyval('extratags', result.extratags or {})\
+ .keyval_not_none('calculated_wikipedia', result.wikipedia)\
+ .keyval('rank_address', result.rank_address)\
+ .keyval('rank_search', result.rank_search)\
+ .keyval('isarea', 'Polygon' in (geom or result.geometry.get('type') or ''))\
+ .key('centroid').raw(centroid).next()\
+ .key('geometry').raw(geom or centroid).next()