]> git.openstreetmap.org Git - nominatim.git/commitdiff
fix debug output for searches
authorSarah Hoffmann <lonvia@denofr.de>
Tue, 20 Jun 2023 08:12:19 +0000 (10:12 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Tue, 20 Jun 2023 08:12:19 +0000 (10:12 +0200)
Fields have been renamed.

nominatim/api/search/geocoder.py

index 5e90d408fbadd364ec6512e6aa72208c48afc17e..0ef649d99ab8857924ef7d86bc3aa96865608666 100644 (file)
@@ -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),