mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-09 11:34:07 +00:00
skip lookup with full names when there are none
This commit is contained in:
@@ -223,6 +223,7 @@ class SearchBuilder:
|
|||||||
|
|
||||||
# Partial term to frequent. Try looking up by rare full names first.
|
# Partial term to frequent. Try looking up by rare full names first.
|
||||||
name_fulls = self.query.get_tokens(name, TokenType.WORD)
|
name_fulls = self.query.get_tokens(name, TokenType.WORD)
|
||||||
|
if name_fulls:
|
||||||
fulls_count = sum(t.count for t in name_fulls)
|
fulls_count = sum(t.count for t in name_fulls)
|
||||||
# At this point drop unindexed partials from the address.
|
# At this point drop unindexed partials from the address.
|
||||||
# This might yield wrong results, nothing we can do about that.
|
# This might yield wrong results, nothing we can do about that.
|
||||||
|
|||||||
Reference in New Issue
Block a user