]> git.openstreetmap.org Git - nominatim.git/commit
fix insertion of special terms and countries into word table
authorSarah Hoffmann <lonvia@denofr.de>
Wed, 2 Jun 2021 15:37:27 +0000 (17:37 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Wed, 2 Jun 2021 18:22:39 +0000 (20:22 +0200)
commitbc981d0261896e240f8cd4cf212f7d191a71e152
tree139d9cd2a951b33eeaaa83e7ed3db50073dcb5b7
parentb1d33e6b4948b37e4686d80dc2336c08dc0e7548
fix insertion of special terms and countries into word table

Special terms need to be prefixed by a space because they are
full terms.

For countries avoid duplicate entries of word tokens.

Adds tests for adding country terms.
nominatim/tokenizer/legacy_tokenizer.py
test/python/mocks.py
test/python/test_tokenizer_legacy.py