]> git.openstreetmap.org Git - nominatim.git/commit
disregard special phrases that do not match fully
authorSarah Hoffmann <lonvia@denofr.de>
Thu, 1 Jun 2017 19:40:23 +0000 (21:40 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Sun, 4 Jun 2017 21:12:09 +0000 (23:12 +0200)
commit54393addd38726e4f02643591e2579b5da7085fd
tree6e6979fcff1414e6ec34d95b09d0f0e23f4a04d5
parente3fb706c65505ce3ad79fe6a2d94c11cc77bf67a
disregard special phrases that do not match fully

Compare the normalized terms imported with the special
terms script with the normalized version of the query string.
Disregard them if they cannot be found. This avoids a significant
number of mismatches due to transliteration issues.

The match will only be done when a normalized word has been set
making this change backwards compatible with older databases.
lib/Geocode.php
settings/defaults.php
utils/specialphrases.php