]> git.openstreetmap.org Git - nominatim.git/blobdiff - nominatim/api/search/db_search_builder.py
avoid splitting of first token when a housenumber is present
[nominatim.git] / nominatim / api / search / db_search_builder.py
index 794012b072f3302279faf803a8fe9565b0cceed4..d18fa96424ddf49a2e307654a719c555811ef2bb 100644 (file)
@@ -225,9 +225,7 @@ class SearchBuilder:
         # This might yield wrong results, nothing we can do about that.
         if not partials_indexed:
             addr_tokens = [t.token for t in addr_partials if t.is_indexed]
-            log().var_dump('before', penalty)
             penalty += 1.2 * sum(t.penalty for t in addr_partials if not t.is_indexed)
-            log().var_dump('after', penalty)
         if rare_names:
             # Any of the full names applies with all of the partials from the address
             lookup = [dbf.FieldLookup('name_vector', [t.token for t in rare_names], 'lookup_any')]