From 3443d2c1293b8f0d989ce87ea9c453f0e9b9ce4e Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Tue, 20 Jun 2023 10:12:19 +0200 Subject: [PATCH] fix debug output for searches Fields have been renamed. --- nominatim/api/search/geocoder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nominatim/api/search/geocoder.py b/nominatim/api/search/geocoder.py index 5e90d408..0ef649d9 100644 --- a/nominatim/api/search/geocoder.py +++ b/nominatim/api/search/geocoder.py @@ -180,7 +180,7 @@ def _dump_searches(searches: List[AbstractSearch], query: QueryStruct, return f'{c[0]}^{c[1]}' for search in searches[start:]: - fields = ('name_lookups', 'name_ranking', 'countries', 'housenumbers', + fields = ('lookups', 'rankings', 'countries', 'housenumbers', 'postcodes', 'qualifier') iters = itertools.zip_longest([f"{search.penalty:.3g}"], *(getattr(search, attr, []) for attr in fields), -- 2.39.5