komoot / photon

an open source geocoder for openstreetmap data
Apache License 2.0
1.83k stars 278 forks source link

Extend fuzzy matching to foreign words #704

Closed lonvia closed 1 year ago

lonvia commented 1 year ago

At the moment fuzzy matches are done only against the default name and the name in the selected language which can lead to confusing results. This changes the lenient search to also use a multi-match query over all languages. It uses best-fields scoring which supports fuzzy matching and works more or less the same as the bool query before.