]> git.openstreetmap.org Git - nominatim.git/commit
further tweak search containing very frequent tokens
authorSarah Hoffmann <lonvia@denofr.de>
Wed, 23 Aug 2023 21:04:12 +0000 (23:04 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Wed, 23 Aug 2023 21:04:12 +0000 (23:04 +0200)
commitdcdda314e21fae2bcafb5c0a2883a1a921cb0300
tree29dfdf63a840c355e6d6f2d2ab5a47a2d4aae658
parentcbd9fad94b7cc39f4790fc75f6c117894f6ad063
further tweak search containing very frequent tokens

Excluding non-rare full names is not really possible because it makes
addresses with street names like 'main st' unsearchable. This tries to
leav all names in but refrain from ordering results by accuracy
when too many results are expected. This means that the DB will simply
get the first n results without any particular order.
nominatim/api/search/db_search_builder.py
nominatim/api/search/db_search_fields.py
nominatim/api/search/db_searches.py