]> git.openstreetmap.org Git - nominatim.git/commit
allow search for partials consisting of 3 or more words
authorSarah Hoffmann <lonvia@denofr.de>
Fri, 27 May 2022 14:49:14 +0000 (16:49 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Fri, 27 May 2022 14:49:14 +0000 (16:49 +0200)
commit9e4e913bf7ab000488e7a58f5cac1c7ebedc399b
tree2908eba94133708c6f769053605184e1328eca6c
parentb593fe9c3e9dd333d870b38e570a898c5f1185f3
allow search for partials consisting of 3 or more words

The search query builder currently rejects searches for partial
names only, when the partial terms are all very frequent to avoid
queries that return too many results.

This change slightly relaxes the condition to allow the search when
there are 3 or more partial terms. With so many terms the number
of matches should be managable.
lib-php/SearchDescription.php